Volume Control in VB3 - TechRepublic
General discussion
October 21, 2002 at 11:35 PM
guruofdos

Volume Control in VB3

by guruofdos . Updated 23 years, 8 months ago

I know, I know!! VB 3 is a little out of date, but most of our systems are still Win 3.11 based and we need to support them!!

Here’s my problem. In the good old days, most soundcards sat on the ISA bus and with a simple 16 bit dll, it was possible to directly read and write port addresses to read or set volume levels for CD Audio, Line In ,Mic and Master Volume. Using for example, ioc.dll which allows IO reads and writes to hardware i/o space, a set of values could be written to s SB 16 cardto directly set mixer levels, without having to use the mixer application supplied by Creative. Under Windows 95 or 98, our app still worked using a SB card in an isa slot. Now we have to port the apps to newer machines with PCI soundcards, or worse, mobo’s with AC97 sound controllers integrated into the Southbridge (e.g. SIS 7018). There is an API (MMSYSTEM.DLL in Win3.11/WinMM.DLL in 9x) but this is mostly concerned with wave, midi etc and I can’t seem to find an API call for accessing mastervolume. Specifically, I want to access volume controls and mute/select functions from VB3 on any soundcard. Suggestions please?!! A VBX control would be preferable, but a 16 bit dll (documented if possible) to do the job would help. Yes I know….I really should port my apps to VB6 or VB.Net but I don’t have the resources and like I say, most of my apps still have to work on 16 bit platforms (dinosaurs!!)

Help!!!!

This discussion is locked

All Comments