Trying to avoid using maxmod, I'm developing my own simple sound library for the DS, but I'm having difficulty getting audio streaming working. On emulator it has audio popping, while on real hardware it seems to just play static for a brief moment before nothing at all.
My method is playing a looping sound of 4096 samples, then starting a timer to read to the 4096 sample buffer, determining how much to read by the sample rate and said timer. I've included the source code in a zip, if anyone is knowledgeable on this subject and willing to help me I would be very grateful.
Okay. So I fixed the popping, and changed my code to use a single timer, so it's overall better. But it still doesn't work on hardware. And I still have no idea why. Updated source attached, if necessary.
My method is playing a looping sound of 4096 samples, then starting a timer to read to the 4096 sample buffer, determining how much to read by the sample rate and said timer. I've included the source code in a zip, if anyone is knowledgeable on this subject and willing to help me I would be very grateful.
Post automatically merged:
Okay. So I fixed the popping, and changed my code to use a single timer, so it's overall better. But it still doesn't work on hardware. And I still have no idea why. Updated source attached, if necessary.
Attachments
Last edited by Poketard,