More audio (or less?)

Hello!

I’m writing some small tests in SDL to try and figure out what this
audio-problem is about. I found out that the reason that there’s
nothing in stdout.txt is that the error messages are written
to stderr and apparently that doesn’t go to stdout.txt. I
get this error when writing to stdout:

waveOutOpen(): The specified format is not supported or cannot
be translated. Use the Capabilities function to determine the
supported formats.

I have not been able to find any Capabilities function.
Also the flag AUDIO_STERIO does not seem to exist.
Neither does the SDL_MapSurface function… Is the
library v0.9.9 broken or is it just API changes?

Cheers–
val it = ("?NOQ of the Sun", “Johnny Andersen”,
[“anoq at vip.cybercity.dk”, “anoq at berlin-consortium.org”,
“anoq at diku.dk”], “http://users.cybercity.dk/~ccc25861/”)
: cyberspacename * meatspacename * email list * homepage URL

ANOQ of the Sun wrote:

Hello!

I’m writing some small tests in SDL to try and figure out what this
audio-problem is about. I found out that the reason that there’s
nothing in stdout.txt is that the error messages are written
to stderr and apparently that doesn’t go to stdout.txt. I
get this error when writing to stdout:

Look for stderr.txt and I advise you do your development under a Linux
system (if possible), as debugging is much easier.

waveOutOpen(): The specified format is not supported or cannot
be translated. Use the Capabilities function to determine the
supported formats.

Wave format not supported? Try converting it with a utiltity. I dont’
think SDL supports compressed wav files.

I have not been able to find any Capabilities function.
Also the flag AUDIO_STERIO does not seem to exist.
Neither does the SDL_MapSurface function… Is the
library v0.9.9 broken or is it just API changes?

AUDIO_STERIO? Shouldn’t that be AUDIO_STEREO?

From what I know SDL_MapSurface was removed from SDL since version 0.9.
I think it now automatically maps when you can SDL_BlitSurface the first
time. I don’t think this is a good way of doing it, but it does simplify
things.

Laterz dOOd,

Paul Lowe
spazz at ulink.net

Paul Lowe wrote:

Look for stderr.txt and I advise you do your development under a Linux
system (if possible), as debugging is much easier.

Yes, but I don’t have audio installed on Linux and my problemnow is (i.e.
was :slight_smile: that I have to see it work on Win*.

Wave format not supported? Try converting it with a utiltity. I dont’
think SDL supports compressed wav files.

I’m not loading any wavefiles for testing. I just implement asimple
fill_audio function which generates a saw-wave.

AUDIO_STERIO? Shouldn’t that be AUDIO_STEREO?

Oops, checking…

Thanks…

Cheers–
val it = ("?NOQ of the Sun", “Johnny Andersen”,
[“anoq at vip.cybercity.dk”, “anoq at berlin-consortium.org”,
“anoq at diku.dk”], “http://users.cybercity.dk/~ccc25861/”)
: cyberspacename * meatspacename * email list * homepage URL

I have not been able to find any Capabilities function.
Also the flag AUDIO_STERIO does not seem to exist.
Neither does the SDL_MapSurface function… Is the
library v0.9.9 broken or is it just API changes?

The API has changed. All API changes are documented in the WhatsNew
file. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/