Page 1 of 1

SFX over VGM

Posted: Sat Feb 08, 2014 2:22 pm
by Zontar
Is it possible to play 2612 sound effects over VGM?

If so, what is the best way to do this?

Posted: Sat Feb 08, 2014 3:08 pm
by Stef
The last version of the VGM driver allow you to play 8 Khz PCM SFX and nothing more but that is already quite a lot when you think the driver is wrote in C ;)

You can define use WAV file to define your SFX, then declare them in your resource file :

Code: Select all

WAV mysfx_var "sfx.wav" 4
and then use :

Code: Select all

SND_playSfx_VGM((u32) mysfx_var, sizeof(mysfx_var));
to play your SFX with the VGM driver.