Hi all!
I noticed today that my SoftStudio sound engine seems to be playing sound a semitone or so down from what it should be.
Most of the engine is cross-platform... atm only the audio 'driver' is either win32 or gp32. This allows me to test first on windows before sending it to my gp32. Most of the time, if it works on windows, it works on the gp32.
When playing a sequence out from FL Studio (the windows softstudio I use), and then when playing the sequence using my engine, exported MIDI files and the same .wav files, the pitch is correct. As soon as I play the sequence from my gp32 (using the same engine source, midi files and .wav files, but different audio driver) the pitch is slightly lower. It sounds fine apart from that, and if I was any kind of musician I probably would've spotted this earlier, but it's only now that I've noticed it (current test sequence has 7 drum sounds, bass, lead and strings... previous test sequence had 3 drum sounds and a arpeggiated bass line so maybe thats why).
I'm using sound code modified slightly from Mr Mirko SDK. I'm not saying it's his code... it's more likely an issue with something I did to the code. I know it could be some subtle difference between the gp32 and win32 versions, but I'd rather make sure the audio code was ok first.
Has anyone else come across this problem before? The audio DMA stuff seems to support abitrary sample rates (ie. not just 11025, 22050 and 44100Hz), so could it be some rate calculation thats off for some reason?
Thanks! (must learn to put same amount of information into less words dammit!)
Doogle
I noticed today that my SoftStudio sound engine seems to be playing sound a semitone or so down from what it should be.
Most of the engine is cross-platform... atm only the audio 'driver' is either win32 or gp32. This allows me to test first on windows before sending it to my gp32. Most of the time, if it works on windows, it works on the gp32.
When playing a sequence out from FL Studio (the windows softstudio I use), and then when playing the sequence using my engine, exported MIDI files and the same .wav files, the pitch is correct. As soon as I play the sequence from my gp32 (using the same engine source, midi files and .wav files, but different audio driver) the pitch is slightly lower. It sounds fine apart from that, and if I was any kind of musician I probably would've spotted this earlier, but it's only now that I've noticed it (current test sequence has 7 drum sounds, bass, lead and strings... previous test sequence had 3 drum sounds and a arpeggiated bass line so maybe thats why).
I'm using sound code modified slightly from Mr Mirko SDK. I'm not saying it's his code... it's more likely an issue with something I did to the code. I know it could be some subtle difference between the gp32 and win32 versions, but I'd rather make sure the audio code was ok first.
Has anyone else come across this problem before? The audio DMA stuff seems to support abitrary sample rates (ie. not just 11025, 22050 and 44100Hz), so could it be some rate calculation thats off for some reason?
Thanks! (must learn to put same amount of information into less words dammit!)
Doogle