[sdlsound] Writing decoded audio to stdout
Ryan C. Gordon
icculus at clutteredmind.org
Wed Feb 16 03:59:11 EST 2005
>> } 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.
More information about the sdlsound