[SDL] SDL test program, no sound and no error either

Albert Zeyer Albert.Zeyer at rwth-aachen.de
Mon Mar 10 02:46:18 PDT 2008



----- Original Message -----
From: Daniel Grace <danwgrace at gmail.com>
Date: Sunday, March 9, 2008 9:29 pm
Subject: Re: [SDL] SDL test program, no sound and no error either
To: "A list for developers using the SDL library. (includes SDL-announce)" <sdl at lists.libsdl.org>

> On Sun, Mar 9, 2008 at 6:28 PM, Albert Zeyer
> <albert.zeyer at rwth-aachen.de> wrote:
> > Unmute them. (Just for testing unmute everything.)
> 
> How do I do that ?   I've used the command before is it alsamixer ?
> 
Doesn't matter which mixer you are using. Just unmute them.


> > > > > > How long is the app running? Does it quit immediatly or 
> does it run
> > > > > > exactly as long as the sound?
> > > > > I think the app quits immediately.
> > > > What do you mean with "I think"? Try it out.
> > > Yes, the app flickers it does not last, so the sound file seems 
> to be ignored.
> > How long does the app run? 'Immediatly returning' really means 
> that you
> > don't really recognise any runtime.
> 
> I was missing the while loop at the end of my application.
> 

Are you serious?? You forgot to include it in your code? (You said before that your code is equal to the ZIP file...)

Of course without the loop the app will quit immediatly and therefore also not play anything.


> > The soundfile itself is also not that long.
> >
> > Use 'time ./yourapp'.
> 
> OK, I'll try this later.
> 
> > > > > There is none, it just says "press a key..." when it has 
> finished.> Why are you getting this output?
> 
> KDevelop outputs this message, or something similar.
> 

Why KDevelop?? I thought you are starting the application in a terminal?


> > SDL_AUDIODRIVER=oss ./yourapp
> 
> That gives an error:
> Unable to initialize audio: No available audio device

OK, not that unexpected. Probably OSS is not configured on your system. But don't care about this.
 


More information about the SDL mailing list