How to Play part of a .wav File in VB2008 or VB2010?
In VB6 you could specify exactly which part of a .wav file you wanted to play. (There were From and To parameters.) You did not have to play it all.
The VB 2008 or VB2010 code
My.Computer.Audio.Play(FireString, AudioPlayMode.Background)
does not seem to allow this.
How can I specify which part I want to play?
(I did search the forum but could not find any relevant posts.)
Thank you,
Punchy.
Re: How to Play part of a .wav File in VB2008 or VB2010?
How did you play it in VB6?
Two choices of the top of my head would be to use Windows Media Player or mciSendString.
Either one allows you to specify a position to play from.
I'm not sure about a position to play to (and am not taking the time to search for myself). If there isn't a specific command, you could always monitor the position and stop it yourself.