From 2aaa3a3a3a21a7c16148e922a8e6d3e14aa5491c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 23 Jan 2017 01:35:11 +0100 Subject: [PATCH] Turn to C comments --- audio/drivers/ctr_csnd_audio.c | 7 +++++-- audio/drivers/ctr_dsp_audio.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/audio/drivers/ctr_csnd_audio.c b/audio/drivers/ctr_csnd_audio.c index 9310f3a255..e7b2115549 100644 --- a/audio/drivers/ctr_csnd_audio.c +++ b/audio/drivers/ctr_csnd_audio.c @@ -94,7 +94,8 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan, 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; 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; -// csndExit(); +#if 0 + csndExit(); +#endif CSND_SetPlayState(0x8, 0); CSND_SetPlayState(0x9, 0); csndExecCmds(false); diff --git a/audio/drivers/ctr_dsp_audio.c b/audio/drivers/ctr_dsp_audio.c index e261879d87..66578bba5c 100644 --- a/audio/drivers/ctr_dsp_audio.c +++ b/audio/drivers/ctr_dsp_audio.c @@ -59,7 +59,7 @@ static void *ctr_dsp_audio_init(const char *device, unsigned rate, unsigned late ctr->channel = 0; ndspSetOutputMode(NDSP_OUTPUT_STEREO); - ndspSetClippingMode(NDSP_CLIP_SOFT); //?? + ndspSetClippingMode(NDSP_CLIP_SOFT); /* ?? */ ndspSetOutputCount(1); ndspChnReset(ctr->channel); ndspChnSetFormat(ctr->channel, NDSP_FORMAT_STEREO_PCM16);