Turn to C comments
This commit is contained in:
parent
fd9531268e
commit
2aaa3a3a3a
|
@ -94,7 +94,8 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan,
|
||||||
|
|
||||||
if (loopMode == CSND_LOOPMODE_NORMAL && paddr1 > paddr0)
|
if (loopMode == CSND_LOOPMODE_NORMAL && paddr1 > paddr0)
|
||||||
{
|
{
|
||||||
// Now that the first block is playing, configure the size of the subsequent blocks
|
/* Now that the first block is playing,
|
||||||
|
* configure the size of the subsequent blocks */
|
||||||
size -= paddr1 - paddr0;
|
size -= paddr1 - paddr0;
|
||||||
CSND_SetBlock(chn, 1, paddr1, size);
|
CSND_SetBlock(chn, 1, paddr1, size);
|
||||||
}
|
}
|
||||||
|
@ -148,7 +149,9 @@ static void ctr_csnd_audio_free(void *data)
|
||||||
{
|
{
|
||||||
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
|
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
|
||||||
|
|
||||||
// csndExit();
|
#if 0
|
||||||
|
csndExit();
|
||||||
|
#endif
|
||||||
CSND_SetPlayState(0x8, 0);
|
CSND_SetPlayState(0x8, 0);
|
||||||
CSND_SetPlayState(0x9, 0);
|
CSND_SetPlayState(0x9, 0);
|
||||||
csndExecCmds(false);
|
csndExecCmds(false);
|
||||||
|
|
|
@ -59,7 +59,7 @@ static void *ctr_dsp_audio_init(const char *device, unsigned rate, unsigned late
|
||||||
ctr->channel = 0;
|
ctr->channel = 0;
|
||||||
|
|
||||||
ndspSetOutputMode(NDSP_OUTPUT_STEREO);
|
ndspSetOutputMode(NDSP_OUTPUT_STEREO);
|
||||||
ndspSetClippingMode(NDSP_CLIP_SOFT); //??
|
ndspSetClippingMode(NDSP_CLIP_SOFT); /* ?? */
|
||||||
ndspSetOutputCount(1);
|
ndspSetOutputCount(1);
|
||||||
ndspChnReset(ctr->channel);
|
ndspChnReset(ctr->channel);
|
||||||
ndspChnSetFormat(ctr->channel, NDSP_FORMAT_STEREO_PCM16);
|
ndspChnSetFormat(ctr->channel, NDSP_FORMAT_STEREO_PCM16);
|
||||||
|
|
Loading…
Reference in New Issue