Yeah I couldnt either its why im asking here :/CONTEXT: There probably is, but I don't know where to find it.
csndInit();
csndPlaySound(0x8, SOUND_REPEAT | SOUND_FORMAT_16BIT, 32728, 1.0F, 0.0F, bgm_bin, NULL, bgm_bin_size);
while(aptMainLoop())
{
// your program is in here
}
csndExit();
ndspWaveBuf bgmusic;
memset(&bgmusic, 0, sizeof(bgmusic));
bgmusic.data_vaddr = bgm_bin;
bgmusic.nsamples = bgm_bin_size / 2;
bgmusic.looping = 1;
if(ndspInit() >= 0)
{
ndspSetOutputMode(NDSP_OUTPUT_STEREO);
ndspSetOutputCount(2);
ndspChnReset(2);
ndspChnSetInterp(2, NDSP_INTERP_LINEAR);
ndspChnSetRate(2, 32728.0F);
ndspChnSetFormat(2, NDSP_FORMAT_MONO_PCM16);
ndspChnWaveBufAdd(2, &bgmusic);
}
while(aptMainLoop())
{
// your program is in here
}
ndspChnReset(2);
ndspExit();