interrogating_20the_20audio_20mixer
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
interrogating_20the_20audio_20mixer [2018/03/31 13:19] – external edit 127.0.0.1 | interrogating_20the_20audio_20mixer [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Interrogating the audio mixer===== | =====Interrogating the audio mixer===== | ||
- | //by Richard Russell, June 2010//\\ \\ **Note: On Windows Vista and Windows 7 each running application has its own independent audio mixer. The code listed here will work correctly, but the mixer interrogated is that for the specific application.**\\ \\ The article [[/ | + | //by Richard Russell, June 2010//\\ \\ **Note: On Windows Vista and Windows 7 each running application has its own independent audio mixer. The code listed here will work correctly, but the mixer interrogated is that for the specific application.**\\ \\ The article [[/ |
+ | |||
+ | <code bb4w> | ||
setting% = FN_mixerget(Dest%, | setting% = FN_mixerget(Dest%, | ||
- | The routine returns the current setting of the control (typically 0-65535 for Volume).\\ \\ The parameters are as follows:\\ \\ | + | </ |
+ | |||
+ | The routine returns the current setting of the control (typically 0-65535 for Volume).\\ \\ The parameters are as follows: | ||
* **" | * **" | ||
* **" | * **" | ||
* **" | * **" | ||
- | \\ | + | |
+ | For other possible values consult the Microsoft documentation.\\ \\ So for example to interrogate the **Microphone recording level** you could use code like this: | ||
+ | |||
+ | <code bb4w> | ||
miclevel% = FN_mixerget(7, | miclevel% = FN_mixerget(7, | ||
- | To read the **CD Player output volume**:\\ | + | </ |
+ | |||
+ | To read the **CD Player output volume**: | ||
+ | |||
+ | <code bb4w> | ||
cdvolume% = FN_mixerget(4, | cdvolume% = FN_mixerget(4, | ||
- | To read a **Master Volume** setting (which does not have a specific source) set the **" | + | </ |
+ | |||
+ | To read a **Master Volume** setting (which does not have a specific source) set the **" | ||
+ | |||
+ | <code bb4w> | ||
master% = FN_mixerget(4, | master% = FN_mixerget(4, | ||
- | Finally here is the code for **FN_mixerget** itself:\\ | + | </ |
+ | |||
+ | Finally here is the code for **FN_mixerget** itself: | ||
+ | |||
+ | <code bb4w> | ||
DEF FN_mixerget(dest%, | DEF FN_mixerget(dest%, | ||
LOCAL hmx%, res%, ndevs%, dev%, src%, level%, MixerLine{} | LOCAL hmx%, res%, ndevs%, dev%, src%, level%, MixerLine{} | ||
Line 103: | Line 122: | ||
= MixerControlDetailsData.dwValue% | = MixerControlDetailsData.dwValue% | ||
+ | </ |
interrogating_20the_20audio_20mixer.1522502365.txt.gz · Last modified: 2024/01/05 00:17 (external edit)