SFX over VGM

SGDK only sub forum

Moderator: Stef

Post Reply
Zontar
Very interested
Posts: 55
Joined: Fri Oct 21, 2011 8:58 pm

SFX over VGM

Post by Zontar »

Is it possible to play 2612 sound effects over VGM?

If so, what is the best way to do this?
Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post 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.
Post Reply