SDL_mixer sound format AUDIO_U16 and Alsa

Hello,

I noticed that AUDIO_U16 on Alsa (0.58b on my laptop) gives an
’unknown hardware format’ error. AUDIO_U8 and AUDIO_S16 (thanks Yorick!)
work fine.

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    More than 60’000 Downloads of the latest version (0.59)

“Andreas Umbach” wrote:

Hello,

I noticed that AUDIO_U16 on Alsa (0.58b on my laptop) gives an
’unknown hardware format’ error. AUDIO_U8 and AUDIO_S16 (thanks Yorick!)
work fine.

My impression was that most sound hardware supports only unsigned 8bit
samples and signed 16bit samples.
My guess would be the signed 8bit and unsigned 16bit flags were added
mostly for the sake of orthogonality. (Is ‘orthogonality’ a real word or
did I just make it up?)

Ben.–
Ben Campbell
Programmer, Creature Labs
ben.campbell at creaturelabs.com
http://www.creaturelabs.com

My impression was that most sound hardware supports only unsigned 8bit
samples and signed 16bit samples.

That’s correct.

My guess would be the signed 8bit and unsigned 16bit flags were added
mostly for the sake of orthogonality.

Yep, although there is hardware our there that supports it.

(Is ‘orthogonality’ a real word or did I just make it up?)

Well, it’s been used twice on this list, so it must be a real word. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga schrieb am 10 Jul 2000:

My impression was that most sound hardware supports only unsigned 8bit
samples and signed 16bit samples.

That’s correct.

My guess would be the signed 8bit and unsigned 16bit flags were added
mostly for the sake of orthogonality.

Yep, although there is hardware our there that supports it.

Then I suggest adding a warning to the documentation, so innocent newbies
don’t fall into the trap (like I did).

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    More than 60’000 Downloads of the latest version (0.59)

Then I suggest adding a warning to the documentation, so innocent newbies
don’t fall into the trap (like I did).

Yes, I’ve ran into several situations where a little expanding of the
documentation would have helped me out through my efforts. I’m wondering
if there is a formal process to add stuff to the SDL documentation.

I’d sure be happy to donate the little things I ran into along the way.–
Brian

(Is ‘orthogonality’ a real word or did I just make it up?)

Well, it’s been used twice on this list, so it must be a real word. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

So, ‘woob’ popped up on the irc channel a few times, that does’nt
make it a word any less than some of the other nonsense we came up
with, or any less than the existance of Wally.

Then I suggest adding a warning to the documentation, so innocent newbies
don’t fall into the trap (like I did).
Poor Andreas, the lost newbie:)

MartinOn Mon, 10 Jul 2000, Andreas Umbach wrote:

Bother! said Pooh, as Freddy used his body to kill Piglet.

Then I suggest adding a warning to the documentation, so innocent newbies
don’t fall into the trap (like I did).

Yes, I’ve ran into several situations where a little expanding of the
documentation would have helped me out through my efforts. I’m wondering
if there is a formal process to add stuff to the SDL documentation.

I’d sure be happy to donate the little things I ran into along the way.
Sure, if you know docbook/sgml and have a little experience with CVS then
get a sourceforge accoutn and I’ll get you to the developers. Otherwise
mail me your changes and/or suggestions.

MartinOn Mon, 10 Jul 2000 hayward at slothmud.org wrote:

Bother! said Pooh, when he found that Eeyore was a donkey voodoo doll

So, ‘woob’ popped up on the irc channel a few times, that does’nt
make it a word any less than some of the other nonsense we came up
with, or any less than the existance of Wally.
Don’t make me insinkerate your nansectry woob!

MartinOn Mon, 10 Jul 2000, Phoenix Kokido wrote:

Bother! said Pooh, as the feds took his videotapes and guns.

Then I suggest adding a warning to the documentation, so innocent newbies
don’t fall into the trap (like I did).

Martin, can you add that note to the audio documentation?

(something along the lines of:
The most commonly supported audio formats are AUDIO_U8 and AUDIO_S16.
)

The problem here is that the audio driver says it supports AUDIO_U16,
but it really doesn’t.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software> On Mon, 10 Jul 2000, Andreas Umbach wrote: