VGM + PCM

SGDK only sub forum

Moderator: Stef

Post Reply
KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

VGM + PCM

Post by KanedaFr » Fri Jul 10, 2015 12:30 am

Hi,

it seems that if you need to play a PCM using the VGM driver, you need to play it over a currently playing VGM.
Can you confirm it ? else I'll have to find the bug in my code ;)

I'm able to play my PCM but the volume is so low compared to the playing VGM ! It's almost silent !
so I'd like to play it alone to compare.

On a side note, are you still using the "old" driver or Chilly Willy/someone was able to write a z80 version (see viewtopic.php?t=1706) ?

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Fri Jul 10, 2015 7:54 am

If you speak about the VGM driver in SGDK, then yeah i'm using the one from kubilus1. When you play a PCM SFX it replaces the PCM channel of the music of course as you have only one single PCM channel to work with.
Did you tried to use the XGM driver instead ? It can take a VGM file as input and allow to play up to 4 PCM channels at same time :)

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Sat Jul 11, 2015 9:18 am

yes, of course !

I'm testing all available possibilities, so I could choose the right driver....according the project or the song format I have on input.

Right now, I selected XGM for one of my project and Echo for another one.


The adpcm is difficult to use because it's difficult to create the right file
The PCM version "crack" on start, while the 4PCM not so PCM isn't a good one.
4PCM is good for a basic sound engine
VGM version is not usable as is (XGM is far superior )
MVS require MVS track so no usable easily
XGM make it easy to use any song format, convert it to VGM then to XGM and add your own PCM on it.

Echo is difficult to use as-is because it's require some special formats but I like the liberty it gives you.
It's why i added support for Echo in GenRes, making it easier to use.

Post Reply