Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Control sound card output using VB

Posted on 1998-09-16
4
Medium Priority
?
319 Views
Last Modified: 2012-05-04
I need to be able to turn my sound card on or off depending on the time of day. I can do the time part of the project but I don't know how to control the operation of the soundcard from VB.??
0
Comment
Question by:rfb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:ryanic
ID: 1435330
If you are using the Sound Card to do playback MIDI and WAVE files only, thne you can use the API function "waveSetVolume" and "midiSetVolume" found in winmm.dll to set the volume to zero. THis should mute out the Sound Card.

I am still searching for a way to control the master volume myself.  Please update me if you found out anything. Thanks.
0
 
LVL 1

Expert Comment

by:ryanic
ID: 1435331
Sorry, but it should be "midiOutSetVolume" and "waveOutSetVolume".

You can also use "mmsystem.dll" for the API call. But the arguments seems to be slightly changes.

0
 
LVL 1

Author Comment

by:rfb
ID: 1435332
sorry...this is audio that is fed into the soundcard from another source. Precisely, I'm feeding a radio into the soundcard and broadcasting it on the Internet using a Real Audio Server. There are certain shows on the Radio that I do Not want to broadcast and I want to automate shutting the audio off and turning it on by writing a VB routine that looks at the time and day and makes the decision to allow the broadcast or not.
0
 

Accepted Solution

by:
stingray earned 300 total points
ID: 1435333
why not try out the control at:

http://www.barint.on.ca/~dcs/dcsMixer/dcsMixer.zip

it allows you to actually set the mute of the sound card or set the master volume.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question