[sdlsound] Writing decoded audio to stdout

Kevin Nowaczyk beakerboy99 at yahoo.com
Wed Feb 16 08:31:46 EST 2005

Thanks for the help!  It looks like it working now. 
My brother, who is quite the linux guru, had me
convinced that the decode function would be returning
raw audio like a .au file and that redirecting this to
the audio device will play the file.  I'll have to
tell him that this isn't the case.

Now I get to see if I can link this up with icecast :)

Kevin Nowaczyk

--- "Ryan C. Gordon" <icculus at clutteredmind.org>

> >>  } while (sound->flags & SOUND_SAMPLEFLAG_EOF);
> Whoops. We're writing one block and quitting...I
> think that was my bug.
> } while ((sound->flags & SOUND_SAMPLEFLAG_EOF) ==
> 0);
> Also, you generally can't just redirect to /dev/dsp
> (or whatever); if 
> the audio data's not the same format it expects,
> it'll give you static 
> since it's trying to play the binary data as if it's
> some other format, 
> which never works out well.
> --ryan.

Manage your PEZ collection online.  Visit PezBase at http://pezbase.beakerboy.com

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the sdlsound mailing list