#59667 - blaisef01 - Thu Nov 03, 2005 5:45 am
hi
In the simple sound examples what is the format of the raw's used?
8bit or 16bit, signed or unsigned, mono or stereo. I don't know
Cheers
#59674 - DekuTree64 - Thu Nov 03, 2005 6:56 am
The hardware can play signed 8-bit, signed 16-bit, and ADPCM (all mono).
Look around in your example's code and see what mode it's setting the channel to. My first guess would be 8-bit, but it might be 16-bit.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku
#59679 - blaisef01 - Thu Nov 03, 2005 7:58 am
cheers i've sorted that out anyway
#60002 - R4p70r - Sun Nov 06, 2005 5:34 am
Why does this play everything on the left channel
#60005 - tepples - Sun Nov 06, 2005 6:13 am
There's a panning register for each channel. If you don't set this for a given channel, then it might default to far left.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#113767 - Zaelsius - Sat Dec 30, 2006 1:15 pm
R4p70r wrote: |
Why does this play everything on the left channel |
I had the same problem, and of course I was setting the panning correctly. I just pasted my workaround on my blog:
You are problably using an ARM9-only template from the libnds-examples package at SourceForge.net. Using the 'templates/combined' project solved the problem for me (I'm using a DS-Xtreme in case you wonder), all sounds finally playing on both channels. This project template generates a binary for both ARM9 and ARM7 processors.
I know it's weird stuff but it works. Even though I have spent many hours looking into LibNDS' source code, I'm still wondering why..
_________________
Blog / KanaDS / LemonTeam.com
#113771 - Sunray - Sat Dec 30, 2006 1:28 pm
I noticed that too. If you look at the default ARM7 stub (not examples/template!) you will see that playSound does not set panning. Very easy too fix though.