From f14d5721ebe9c5f5b5ed85ba88ee40d9bb4d72bb Mon Sep 17 00:00:00 2001 From: Lectem Date: Fri, 9 Oct 2015 19:41:29 -0400 Subject: [PATCH] Document the loop behaviour of csndPlaySound --- libctru/include/3ds/services/csnd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libctru/include/3ds/services/csnd.h b/libctru/include/3ds/services/csnd.h index ea1f519..64a964e 100644 --- a/libctru/include/3ds/services/csnd.h +++ b/libctru/include/3ds/services/csnd.h @@ -363,8 +363,10 @@ Result CSND_UpdateInfo(bool waitDone); * @param vol The volume, ranges from 0.0 to 1.0 included. * @param pan The pan, ranges from -1.0 to 1.0 included. * @param data0 First block of sound data. - * @param data1 Second block of sound data. Used as a loop destination. + * @param data1 Second block of sound data. This is the block that will be looped over. * @param size Size of the sound data. + * + * In this implementation if the loop mode is used, data1 must be in the range [data0 ; data0 + size]. Sound will be played once from data0 to data0 + size and then loop between data1 and data0+size. */ Result csndPlaySound(int chn, u32 flags, u32 sampleRate, float vol, float pan, void* data0, void* data1, u32 size);