[SDL] Sound problems

N D ndlnx at yahoo.com
Thu Dec 5 21:30:01 PST 2002


--- Patrick McFarland <unknown at panax.com> wrote:
> On 05-Dec-2002, N D wrote:
> > I am using RedHat 8.0 (and the SDL that is shipped
> > with it)
> > 
> > I have three problems out of which one is solved
> > although I would like to know more about the
> solution.
> > (no1 that I mention )
> > 
> > 1. I have an onboard sound card and am using ALSA.
> I
> > encountered some time lag similar to what John
> Hall
> > has talked about in his Pro Linux Games book, but
> with
> > ESD. Now this time lag gets almost resolved
> completely
> > if I use 22050 sample rate instead of 44100. What
> does
> > this mean? 
> 
> Dont use ESD, its evil.
>  
> > 2. Any SDL application using sound works only the
> > every other time on my machine. Every alternate
> time I
> > get an error with Mix_OpenAudio function failing. 
> > When I am not using Mix_OpenAudio, SDL_OpenAudio
> fails
> > with the error string being " Unable to Open ESD
> > connection" Before this error I could have sworn
> that
> > I was using ALSA. Now how do I find out for sure
> what
> > I am using? 
> 
> Remove ESD and all applications use it. Build SDL
> without ESD.

I exorcised the system and problem 1 and 2 have
mysteriously disappeared. I did not remove the
applications that used it and to my pleasant surprise
I could use alsaplayer to play CDs (it is the only app
that can play audio CDs in my system and was shown to
be esd dependent)

Thanks for this.


> > 3. Mix_LoadMus if passed an MP3 file, does not
> give
> > the desired results. The file is never played. If
> I
> > pass an ogg file, it is played perfectly. 

Ok 2 down 1 to go :) I can live with this though as I
just installed oggasm that converts MP3s to ogg. 


> > 
> > Any help will be greatly appreciated. Thanks for
> your
> > time. 
> > 
> > -
> > ND


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com




More information about the SDL mailing list