On Sep 27, 5:31*am, AWW <wrote:
Using XP and VB 2005, it seemed like a good idea to
save audio in the clipboard and then play it with backgroundworker.
Cannot find a good Clipboard audio example anywhere - just SetAudio
and GetAudio. And an example seems to do a SwapAudio which makes no
sense.
Basically I want to spool or simulate spooling of audio.
So is this reasonable for asynchronous audio clip play? or alternate?
Any thoughts or pointers to other sources? Thanks.
AWW,
You can take a look at Clipboard's overloaded SetAudio and
GetAudioStream methods as follows:
http://msdn.microsoft.com/en-us/libr...io(VS.80).aspx http://msdn.microsoft.com/en-us/libr...am(VS.80).aspx
However, if you just want to play a WAV file at the background, you
can use "My.Computer.Audio.Play" as follows:
'Play wav file in background continuously
'Check AudioPlayMode Enum for more options
My.Computer.Audio.Play("c:\sound.wav", AudioPlayMode.BackgroundLoop)
'To stop just call Stop method
My.Computer.Audio.Stop
Hope this helps,
Onur Güzel