|
-
Jun 29th, 2015, 04:37 AM
#1
Thread Starter
Member
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.
-
Jun 29th, 2015, 05:40 AM
#2
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|