I’m trying to use SDL’s sound system and so far it’s met with total failure.
It initializes properly, it calls my callback, I fill it with data, and I
get total silence. Winamp works, the data seems to be being generated
correctly, but whatever I do I can’t seem to get any sound out of SDL
whatsoever. Suggestions? I haven’t been able to find any simple sound
samples that are functional, and so I’m really running low on ideas.
-Zorba
(WinAmp? I assume you’re on Windows.)
Anyway, have you tried this?
http://olofson.net/examples.html (simplemixer)
http://olofson.net/download/simplemixer-1.1.tar.gz
Or this?
http://olofson.net/mixed.html (speaker)
http://olofson.net/download/speaker.tar.gz
(Or Audiality - but that’s pretty much as far from simple as you can
possibly get!
Do any SDL based applications (binaries) produce sound? Does anything
that uses SDL audio work when you compile it?
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Monday 08 September 2003 06.22, Ben Wilhelm wrote:
I’m trying to use SDL’s sound system and so far it’s met with total
failure. It initializes properly, it calls my callback, I fill it
with data, and I get total silence. Winamp works, the data seems to
be being generated correctly, but whatever I do I can’t seem to get
any sound out of SDL whatsoever. Suggestions? I haven’t been able
to find any simple sound samples that are functional, and so I’m
really running low on ideas.
El Lunes, 8 de Septiembre de 2003 06:22, Ben Wilhelm escribi?:
I’m trying to use SDL’s sound system and so far it’s met with total
failure. It initializes properly, it calls my callback, I fill it with
data, and I get total silence. Winamp works, the data seems to be being
generated correctly, but whatever I do I can’t seem to get any sound out of
SDL whatsoever. Suggestions? I haven’t been able to find any simple sound
samples that are functional, and so I’m really running low on ideas.
-Zorba
Why don’t you try the one in Programming Linux Games? I’m reading that book
now, and I tried the SDL sound one just yesterday. Works just fine in
SDL1.2.5, should do too in 1.2.6.
I don’t have the URL right here but as usual, just do a quick lookup on Google
for the book’s name, it’s one of the first items on the list. It’s available
on PDF form.
~Antonio