Sorry, but it seems no matter what you do with hertz and rate, the speed will change, or it will sound the exact same. In my case the speed MUST remain the same, while the pitch is altered. I really don't think blitzmax basic audio can do this, not that easily anyways.
Could I maybe alter the samples (byte ptr) somehow to achieve this?
Example, that does not work:
Could I maybe alter the samples (byte ptr) somehow to achieve this?
Example, that does not work:
SuperStrict Local timer:TTimer = CreateTimer(20) Local sound:TAudioSample = LoadAudioSample(RequestFile("Audio file")) Local sound2:TAudioSample = CreateStaticAudioSample(sound.samples, sound.length, sound.hertz * 2, sound.format) Local channel:TChannel = PlaySound(LoadSound(sound2)) channel.SetRate 0.5 For Local i:Int = 1.0 To 20 Step 0.01 WaitTimer timer Next