473,657 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Audio mixer notifications?

Using VB.NET 2003,

QUESTION
How do I set up my program so that it will be notified of any/all audio
changes on the machine? I.e. if someone adjusts the machine’s volume outside
of my app, I want my app to be notified so that I can update the app’s volume
track bar or mute check box appropriately.

BACKGROUND
I have a windows app that plays some media (sounds, audio).... I cobbled
together an audio mixer control that uses "winmm.dll" API calls to GET and
SET the master volume on the machine on which the app is running -- this
worked great except for one element: notification of system audio changes
made outside of my app are not reflected on my app's volume controls... this
leads to the possibility of the my app’s volume track bar being in the wrong
position and/or my app's mute checkbox being in the wrong state.

I'm fuzzy on delegates and notifications so any help in this arena would
appreciated... Thanks for your attention to this matter,

--Charles
May 19 '06 #1
0 1314

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2386
by: Tal Sharfi | last post by:
hi all I need to playback two or more audio files ( .wav files) together. let's say it's a song and a person speaking. I need to control the volume of the two channels, so when the speaking file is playing, the song volume is lowered. can someone point me to a simple example in c-sharp (or other .net language) thats implements some kind of audio mixer?
0
1980
by: conaito VoIP | last post by:
conaito VoIP ActiveX library for developers of VoIP audio applications, such as voice chat, conference, VoIP, providing real-time low latency multi-client audio streaming over UDP/IP networks. Includes efficient components for sound recording, playback, encoding, decoding, mixing, resampling, reading, and writing wave files, mixer volume controls access. Provides UDP/IP server and client components for peer-to-peer, multi-user, and...
2
11614
by: arkam | last post by:
Here is the code : public class AudioMixerHelper { public const int MMSYSERR_NOERROR = 0; public const int MAXPNAMELEN = 32; public const int MIXER_LONG_NAME_CHARS = 64; public const int MIXER_SHORT_NAME_CHARS = 16; public const int MIXER_GETLINEINFOF_COMPONENTTYPE = 0x3;
3
5130
by: | last post by:
I wrote an application and I want to decrease "system's" audio level .I dont want to do it via directshow must do it on directly window's wave volume control. Thankse
0
1785
by: daniel123456 | last post by:
Hi, I'm searching for an audio mixer class that can change the balance o the lines too. I already found the AudioMixerHelper (e.g http://forums.hostrocket.com/archive/index.php/t-16820.html )class, bu this one can only change the volume for both channels. In other sources i saw that vol was an array like vol.dwvalue=rigthvol vol.dwvalue=leftvol
5
2788
by: Paul van der Heu | last post by:
Is there really no one here who knows how to get the different sound devices available in your system as they are presented in soundmapper?? -- Bill Gates can't guarantee Windows, how are you gonna guarantee my safety.. --John Crichton - Farscape pilot
1
10677
by: Andrea V.F. | last post by:
I need to control (Get and Set) this parameters of Windows Audio Mixer: - Master Volume Mute - Master Volume Level In addition, but not mandatory, I need to control also the PC Speaker Mute and Volume. PC Speaker control is aviable only in some Systems such as laptops, in others systems there is no control of PC speaker in Windows Mixer.
2
2756
by: Pan Xingzhi | last post by:
Guys: Hi there. Recently I'll have to write a quite interesting program in Python on a Linux box. What I need is a function which allows the user to 'switch' the audio output from <an audio file>/<microphone>/<line in>. I'm not quite familiar with Linux programming. I've checked some python media frameworks but still need some light. Does anybody have experience on this? Thanks in advance!
0
1469
by: Marc Shapiro | last post by:
I am running Python 2.3 on Linux. I am trying to write a program to simulate a hardware mixer to play theatrical sound cues. I need to be able to play multiple sound channels at once, controlling volume by channel as well as globally. I also need to be able to pan a channel through left and right speakers. I would prefer if the sound files could be ogg, mp3, or wav, and if they could be streamed, instead of having to load each file...
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8613
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.