I am not able to find an example or tutorial on using the xenon_sound driver.
Here follows the code i use today ( copy from the megadrive emulator sound engine found by googling ).
Code: Select all
#include <xenon_sound/sound.h>
...
if ( xenon_sound_get_unplayed() > 0 ) { // attends que ce soit libre }
else { xenon_sound_submit( pcm_data, pcm_length ); }
Question : How to make it work ? Do i just have to transform my wav file in a RAW PCM format with special frequency and bit rate ?
Thank you for your help.