Hey All,
So I'm starting up a new project, and I'm looking over the failures/successes of my last one. Pretty high up on my failures list is the horrible slowdown I experienced when trying to play background music ingame. Granted, I may have been expecting too much of the GP2X to allow high-quality ogg playback during a fairly complicated (and unoptimized) game, but I'd like to take another stab at it this time around. One idea thats been floating around in my brain is spawning an audio processing thread and executing that on the coprocessor, leaving the main one free to worry about more important stuff. Logic tells me that this should be relativley simple, since the audio doesn't depend on much and the only inter-process communication I'd need would be a queue of sound events to play. However, experience tells me this will be freaking impossible and I should abandon all hope right now. I'm hoping reality is somewhere in between, but given my lack of experience coding at a hardware level on something like the GP2X, I was hoping the community could give me a better idea of what I'm up against.
So here it is: background music and audio playback on the 2nd processor... is it even possible? How hard would it be? Has anything similar been done that I could look at for reference?
Thanks
So I'm starting up a new project, and I'm looking over the failures/successes of my last one. Pretty high up on my failures list is the horrible slowdown I experienced when trying to play background music ingame. Granted, I may have been expecting too much of the GP2X to allow high-quality ogg playback during a fairly complicated (and unoptimized) game, but I'd like to take another stab at it this time around. One idea thats been floating around in my brain is spawning an audio processing thread and executing that on the coprocessor, leaving the main one free to worry about more important stuff. Logic tells me that this should be relativley simple, since the audio doesn't depend on much and the only inter-process communication I'd need would be a queue of sound events to play. However, experience tells me this will be freaking impossible and I should abandon all hope right now. I'm hoping reality is somewhere in between, but given my lack of experience coding at a hardware level on something like the GP2X, I was hoping the community could give me a better idea of what I'm up against.
So here it is: background music and audio playback on the 2nd processor... is it even possible? How hard would it be? Has anything similar been done that I could look at for reference?
Thanks