Does anyone know an efficient way to generate sound tones in Visual
Basic 2005/2008 so that I can specify:

- Pitch
- Duration
- Volume

... which uses the computer's soundcard (not the motherboard
speaker).?

From what I've seen, DirectX may be the only solution but even that
seems extremely cumbersome. I'm amazed that Visual Basic doesn't have
an easy way to do this. It was a lot easier on my Apple //c!

Thanks for any suggestions.

Re: What is the most efficient way ... by kimiraikkonen

kimiraikkonen
Mon May 05 08:32:38 CDT 2008

On May 5, 4:00 pm, furytra...@gmail.com wrote:
> Does anyone know an efficient way to generate sound tones in Visual
> Basic 2005/2008 so that I can specify:
>
> - Pitch
> - Duration
> - Volume
>
> ... which uses the computer's soundcard (not the motherboard
> speaker).?
>
> From what I've seen, DirectX may be the only solution but even that
> seems extremely cumbersome. I'm amazed that Visual Basic doesn't have
> an easy way to do this. It was a lot easier on my Apple //c!
>
> Thanks for any suggestions.

You can use Windows Media Player SDK, can be used by adding ActiveX
control to your toolbox from COM tab(wmp.dll). It allows you to see
media duration and volume adjustment.

Onur

Re: What is the most efficient way ... by furytrader

furytrader
Mon May 05 12:15:31 CDT 2008


Thanks, Onur, I'll check it out!