GP2X Audio Streaming?


Is there any way to stream audio files without having to load them completely into memory with SDL?
Or do I have to code my own funtion to do this?
 
SDL_Mixer can do this, I'm sure, so it should be possible.
Basically if you keep the file open you can stream a little bit in to the audio buffer each time it's needed, as you can hook a function on to the output buffer. If that doesn't work out, you can put another buffer inbetween which loads from the file and feeds to the audio buffer.
 
SDL_Mixer can do this, I'm sure, so it should be possible.
Basically if you keep the file open you can stream a little bit in to the audio buffer each time it's needed, as you can hook a function on to the output buffer. If that doesn't work out, you can put another buffer inbetween which loads from the file and feeds to the audio buffer.

Thanks I will check into this.
 
Last edited by a moderator:
Back
Top