I found this in the forums for playing wav files. I was thrilled to hear a Cobra Mustang doing a burnout while my bitmapped tachometer climbed crazily through 8000 rpm!
(with help from Perfect Sync's Grafix Tools. Love it)
SUB PlayWave(BYVAL File$)
LOCAL zWav AS ASCIIZ * 256
zWav = File$
CALL PlaySound(zWav, BYVAL NULL%, %SND_ASYNC)
END SUB
Anybody know how to let a wav file play, but in the middle of it, suddenly change the sampling rate without starting the wav over again? Would love to take a 2 or 3 second sound clip of an engine at a constant speed and change the sampling rate repeatedly while it's playing, to make the tone gradually change up and down. Is this possible? Flightsim 98 does this, I think. I'm new to the wav thing, so please, be gentle!
Praying hard, Todd
P.S. Would Charles Petzold's book have answers to this kind of thing?
[This message has been edited by Todd Wasson (edited February 04, 2000).]

SUB PlayWave(BYVAL File$)
LOCAL zWav AS ASCIIZ * 256
zWav = File$
CALL PlaySound(zWav, BYVAL NULL%, %SND_ASYNC)
END SUB
Anybody know how to let a wav file play, but in the middle of it, suddenly change the sampling rate without starting the wav over again? Would love to take a 2 or 3 second sound clip of an engine at a constant speed and change the sampling rate repeatedly while it's playing, to make the tone gradually change up and down. Is this possible? Flightsim 98 does this, I think. I'm new to the wav thing, so please, be gentle!
Praying hard, Todd
P.S. Would Charles Petzold's book have answers to this kind of thing?
[This message has been edited by Todd Wasson (edited February 04, 2000).]
Comment