SDL_Mixer

David wrote:

has anyone had problems with the SDL_Mixer in windows…?

because i ask questions about this and NO ONE ever answer.

or maybe i am the only one who has trouble with it.

please if anyone had a problem can tell me what have you done to solve it.

my problem is that the sound is not going out the speakers. the program
compiles allright and the program run all the time the sound last. but
(i repeat) no sound is coming out,

i havent had problems with it (under windows) the only thing was
positional sound didnt work to well using 8bit sounds (only to be
expected though :))
does sdl_audio work?
are u checking for errors? eg after setup, after loading the sound etc–
lets hear it for billy bollux and his bouncing balls
http://uk.geocities.com/sloppyturds/kea/kea.html

David wrote:

yes i’ve check it… here’s the code… could it be some problem with
the driver?

The program runs fine for me when I add a call to SDL_SetVideoMode.
Appearently DirectSound (or something else) cannot operate without a
window.

Mix_Volume(0,255);

Not that MIX_MAX_VOLUME is 128.–
Rainer Deyke | rainerd at eldwood.com | http://eldwood.com

David wrote:

yes i’ve check it… here’s the code… could it be some problem with
the driver?

The program runs fine for me when I add a call to SDL_SetVideoMode.
Appearently DirectSound (or something else) cannot operate without a
window.

Mix_Volume(0,255);

Not that MIX_MAX_VOLUME is 128.

i love you man! i call SDL_SEtVideoMode() and everithing works just fine!!
iuuuuju!!! what a relief…

thanks a lot man!

Hello, anyone knows why SDL_Mixer automaticaly loads esd when I call
Mix_OpenAudio?

I am trying to make it use /dev/dsp directly instaed of any audio
daemon.

I think there must be some variable.

Thanks

Piero

Quoth “Piero B. Contezini” , on 2004-06-29 14:13:25 -0300:

Hello, anyone knows why SDL_Mixer automaticaly loads esd when I call
Mix_OpenAudio?

I am trying to make it use /dev/dsp directly instaed of any audio
daemon.

I think there must be some variable.

IINM, SDL will try /dev/dsp first or near-first; it would only use esd
if /dev/dsp is not available. esd often holds /dev/dsp open for itself
depending on its configuration, and so even if you forced SDL to open
the audio device directly it would fail.

Turning esd off so that it’s no longer holding the device open should
work; setting the environment variable SDL_AUDIODRIVER to ‘dsp’ should
also force SDL to open the OSS device directly, but that may still fail
if esd is still running (and does not have its output suspended) or if
another program is using the device.

—> Drake Wilson

What about known bugs in SDL_Mixer?
When I try to load more than one MikMOD module, with Mix_LoadMUS, into
memory, I sometimes lose a loaded SDL_Surface. If I load two Ogg files I
instead lose keysyms for some keys (X11: Unknown xsym, sym =
0x42b60000). And sometimes I just get seg fault. It seems like something
is written to some adresses in memory where it shouldn’t be.
(I use SDL 1.2 with SDL_Mixer 1.2)
/ Daniel U

What about known bugs in SDL_Mixer?
When I try to load more than one MikMOD module, with Mix_LoadMUS, into
memory, I sometimes lose a loaded SDL_Surface. If I load two Ogg files I
instead lose keysyms for some keys (X11: Unknown xsym, sym =
0x42b60000). And sometimes I just get seg fault. It seems like something
is written to some adresses in memory where it shouldn’t be.

Try the latest version of SDL_mixer from CVS, and if it still happens,
please post a link to the source and data you used so we can look at it.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment