From 8ac08bad4ece60c65053218b80dd207ea55c352f Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 19 Feb 2015 18:48:31 +0000 Subject: [PATCH] default loop mode is one shot --- libctru/source/services/csnd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libctru/source/services/csnd.c b/libctru/source/services/csnd.c index 994443f..82767a9 100644 --- a/libctru/source/services/csnd.c +++ b/libctru/source/services/csnd.c @@ -405,6 +405,8 @@ Result csndPlaySound(int chn, u32 flags, u32 sampleRate, void* data0, void* data int encoding = (flags >> 12) & 3; int loopMode = (flags >> 10) & 3; + if (!loopMode) flags |= CSND_LOOPMODE_ONESHOT; + if (encoding != CSND_ENCODING_PSG) { if (data0) paddr0 = osConvertVirtToPhys((u32)data0);