Homebrew Homebrew Development

  • Thread starter Thread starter aliak11
  • Start date Start date
  • Views Views 1,475,035
  • Replies Replies 6,048
  • Likes Likes 54
It depends on how you call CSND_playsound:

Code:
Result CSND_playsound(u32 channel, u32 looping, u32 encoding, u32 samplerate, u32 *vaddr0, u32 *vaddr1, u32 totalbytesize, u32 unk0, u32 unk1);

looping value could be 1 or 0. 1=Loop, 0=No Loop
 
It depends on how you call CSND_playsound:

Code:
Result CSND_playsound(u32 channel, u32 looping, u32 encoding, u32 samplerate, u32 *vaddr0, u32 *vaddr1, u32 totalbytesize, u32 unk0, u32 unk1);

looping value could be 1 or 0. 1=Loop, 0=No Loop

Why u32 and not just bool ?!

You love u32 values lol
 
It depends on how you call CSND_playsound:

Code:
Result CSND_playsound(u32 channel, u32 looping, u32 encoding, u32 samplerate, u32 *vaddr0, u32 *vaddr1, u32 totalbytesize, u32 unk0, u32 unk1);

looping value could be 1 or 0. 1=Loop, 0=No Loop
No wait, i mean my main loop cycles 60 times each second. If a sound starts to play, the main loop keeps cycling, or does it wait playback end before continuing the loop?
 
You must call playsound once.
If you call it as looping=0, when audiobuffer ends, playback state is set to 0.
If you call it as looping=1, when audiobuffer ends, playsound pointer goes to (vaddr1 - vaddr0) [so at the begin of the audiobuffer] and set playback state to 1.
 
Someone knows how to use gyroscope?

I tried to use this:
Code:
hidScanInput();
    irrstScanInput();
HIDUSER_EnableGyroscope();
float value;
        HIDUSER_GetGyroscopeRawToDpsCoefficient(&value);

But ninjhax crashes when i try it.
 

Site & Scene News

Popular threads in this forum