Simple code to just loop a WAV file using SGDK
Moderator: Stef
Simple code to just loop a WAV file using SGDK
Hello, I was wondering if anyone had a very simple main.c example of looping a wave file using SGDK. I am not sure exactly what is the minimum required based on the sample sound file included with the toolchain. Thanks!
Thanks anyway.
I got it:
SGDK is awesome
I got it:
Code: Select all
if (SND_isPlaying_4PCM(SOUND_PCM_CH4_MSK)){SND_stopPlay_4PCM(SOUND_PCM_CH4);}
SND_startPlay_4PCM(__SOME_WAV_FILE__, sizeof(__SOME_WAV_FILE__), SOUND_PCM_CH4, 1);
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Yeah i think it's better as the driver support several playback rate as it does support panning too. If you don't need that feature then you can go with the 4 channels playersendbit wrote:Thanks for that additional info. Should I be using the driver that can only support one sample at a time if not using the other available sample slots?