How to play a beep with a particular length
-
I would like to play a beep with a particular lenght in milliseconds. How to do this in VB.net? Is there a way to play the beep with soundcard and not with PC Speaker (the beep function would instead call a wav/mid file and adjust its length according to the target length)? All help is welcome!
-
I would like to play a beep with a particular lenght in milliseconds. How to do this in VB.net? Is there a way to play the beep with soundcard and not with PC Speaker (the beep function would instead call a wav/mid file and adjust its length according to the target length)? All help is welcome!
Which version of VB.NET? In 2005, you have the
[My.Computer.Audio](http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx)[[^](http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx "New Window")]
object that will do something like this. There is no method or function call to resample a wave file and strech/compress it to play in x number of milliseconds. You'll have to find a library to do this for you. I don't know of any off the top of my head.Dave Kreskowiak Microsoft MVP - Visual Basic
-
Which version of VB.NET? In 2005, you have the
[My.Computer.Audio](http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx)[[^](http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx "New Window")]
object that will do something like this. There is no method or function call to resample a wave file and strech/compress it to play in x number of milliseconds. You'll have to find a library to do this for you. I don't know of any off the top of my head.Dave Kreskowiak Microsoft MVP - Visual Basic
Is there a way to generate a sine wave sound with a particular frequency?
-
Is there a way to generate a sine wave sound with a particular frequency?
Dave Kreskowiak Microsoft MVP - Visual Basic