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

Daniel Grace danwgrace at gmail.com
Sun Mar 9 12:29:18 PDT 2008


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 ?

> > > > > 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.

> 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.

> Which terminal are you using?
> > >
> > > Perhaps put further debug messages into to see if they got printed.

OK, I'll try this later.

> > > Just try a bit around... Don't wait that we ask you always for all small
> > > details.
> > >
> > > Perhaps also try to enable the current disabled features, perhaps SDL
> > > behaves a bit different (buggy) without them. I would at least test to
> > > enable OSS-support (even if you don't want to use it later).
> > >
> >
> > I enabled oss in ufed and then I remerged sdl-mixer and libsdl.
> > Do I need to emerge world now ?
>
> No, that's already enough. (Though I am not sure if you have the
> ALSA-OSS layer correctly installed in the kernel.)
>
> Is there any difference if you use this now:
>
> SDL_AUDIODRIVER=oss ./yourapp

That gives an error:
Unable to initialize audio: No available audio device


More information about the SDL mailing list