gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Sound only in mono ?

#80942 - smsisko - Wed Apr 26, 2006 6:31 am

I've tried a couple of audio code examples, and they seem to always play sound on the left speaker only, I can't seem to play sound on both speaker. Maybe there is something that I am missing.

I've even compiled SaTa's mp3play (r10) and it too only play sounds on the left speaker. And since I can't seem to find the way to execute the precompiled version on my m3 I can't compare.

I would welcome any comments on this, thank you

smsisko

#80944 - tepples - Wed Apr 26, 2006 6:34 am

You need to use two channels to play distinct sounds out of left and right speakers. If you want to play the same sound on both speakers, you can use panning.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#80967 - smsisko - Wed Apr 26, 2006 12:11 pm

That's what I tought, but I can't seem to make it work using the panning, by default the example (ndsexample SimpleSound) I used set the panning to 64, so I tried the full range from -128,127 and it makes not change whatsoever.

I can't seem to find documentation regarding this.

I've tried looking through the source code for libnds but there is no indication of the value that should be but I think that theses changes should have an impact.

Maybe I should try with a differenct libnds and/or devkitARM version.