 |
|
|
 |
|
 |
Hi Chen,
I am working on a project where I need two separate EXE files.
1. To preset Microphone as the input device
2. To Preset WaveOut Mix(Stereo Mix) as the input device.
These two programs need to run on NT/2000/XP/Vista/Windows7.
Is this something you can help me?
Please contact me at : rsekar_2005@yahoo.com
Thanks
|
|
|
|
 |
|
 |
Hi,
i habe successfully change the volume of the microphone input. But under WinXP with a realtek alc269 i can't change the volume.
What i guess is most soundcards have a Recording Volume for changine the volume of each input type. with this chip set, there is no REcording Volume.
How can i change the volume of this parts such like microphone or stereomix?
Thanks in advance
|
|
|
|
 |
|
 |
OnMixerChange is a Callback function that is called whenever system volume is changed.
Now I have 2 different cases
case 1) Now when I load my application, while loading I set the system volume to default at OnInitDialog so at that point of time it is called, and
case 2)when some user changes the system volume
Since when some user is changing the volume settings I want to notify the user that he is changing the default volume. In order to do that I have set my MFC Dialog Application in Hidden when someone changes the volume it gets visible and displays alert.
Now is there any flag in OnMixerCtrlChange through which I can differentitate that it has been called from the application itself (case 1) or by the user (case)2?
Maverick
|
|
|
|
 |
|
 |
The answer is 'no'. You would have to differentiate by yourself. :(
|
|
|
|
 |
|
 |
How can I boost my Microphone with this? Does pmxcdSelectText[dwi].szName Stores the value of Microphone Boost Label??
Maverick
|
|
|
|
 |
|
 |
In my PC I am facing a new challange. In my PC there are 2 different mixers.
1) SoundMX HD Audio 0 and
2) SoundMX HD Audio 1
Now first one is used for mater volume and 2nd one is used for Recording. Therefore while initializing, in this section of code
if (m_nNumMixers != 0)
{
if (::mixerOpen(&m_hMixer,
0,
reinterpret_cast<DWORD>(this->GetSafeHwnd()),
NULL,
MIXER_OBJECTF_MIXER | CALLBACK_WINDOW)
!= MMSYSERR_NOERROR)
{
return FALSE;
}
if (::mixerGetDevCaps(reinterpret_cast<UINT>(m_hMixer),
&m_mxcaps, sizeof(MIXERCAPS))
!= MMSYSERR_NOERROR)
{
return FALSE;
}
}
It takes first mixer for this Mic therefore does'nt work. Can you tell me a trick in which it should take 2nd Mixer? Although it is able to extract both the mixers. But isn't there a way to determin, which driver belongs to Recording?
Maverick
modified on Friday, January 7, 2011 4:43 AM
|
|
|
|
 |
|
 |
The 2nd parameter of mixerOpen() is the device identifier that varies from zero to one less than the number of devices present. You need to pass 1 if you want to open the 2nd mixer.
|
|
|
|
 |
|
 |
Thank you. In this case I know that 2nd Device is the driver for Recording. But lets say that I have multiple audio drivers and I am working in a PC in which I don't know that which Audio Driver is used for recording. So in this case, is there any way they system can automatically find out the right driver for Recording?
I've seen an example in Codeproject only an example
Audio Library
Audio Library Part I - (Windows Mixer Control)[^]
Where it automatically determines that which driver can be used for which device. But since its developed in C#. I can't use it here
Maverick
|
|
|
|
 |
|
 |
You need to call mixerGetDevCaps() to get the product identifier (which may give you the information like WAVEIN, WAVEOUT) and the number of audio line destinations available for each mixer device. Then you can call mixerGetLineInfo() for each audio line to determine its component type which will tell you whether it is a recording source.
|
|
|
|
 |
|
 |
Thanks. I will try that
Maverick
|
|
|
|
 |
|
 |
Hello,
i have a problem to set balance for the speaker output of my soundcards (more than one). i can list all lines (with "mixerGetNumDevs()" and "mixerOpen()") an within i can list all mixers for a line that have the componenttype MIXERLINE_COMPONENTTYPE_DST_SPEAKERS ("mixerGetLineInfo()"). When i list all the controls ("mixerGetLineControls()") of such a line i get only a volume control and a mute control, nothing to adjust balance. I list all controls of the MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, but as i said only the two controls above. The
Second try: I think (but don't know) the right controltype should be MIXERCONTROL_CONTROLTYPE_PAN. But there is no such a control in all my MIXERLINE_COMPONENTTYPE_DST_SPEAKERS lines???
When i open windows sound control i see vor all my soundcards a slider control for balance of the master volume. So i think the control is there, the only problem is how to find ist? Isn't it a control of a MIXERLINE_COMPONENTTYPE_DST_SPEAKERS line?
Can somebody give me a useful hint? Or a little bit more?
Thank you very much
MIKE
P.S.: I'm from germany, sorry for my poor english!
|
|
|
|
 |
|
 |
Great Job Chen!!
Do you know of a way to route the audio from the left channel to the right speaker and the right channel to the left speaker (reverse stereo) or to route one of the channels to both speakers (mono)?
Thanks for your hard work.
Eric
|
|
|
|
 |
|
 |
Thanks! You can turn off one of the channels or adjust the volume of one of the channels. But I haven't seen a sound card/driver which allows you to do exactly what you described. Sorry.
|
|
|
|
 |
|
 |
Is it Possible to record audio/speaker Output and produce an audio file?
Thanks in advance.
|
|
|
|
 |
|
 |
It depends on the sound card/driver on your computer. Some sound cards/drivers have a recording line connected to the speaker output, in which case you can select that line and deselect all the other lines to record. Otherwise, you might be able to use a physical cable to connect the jacks (I have never tried). Of course, you can always use two computers.
|
|
|
|
 |
|
 |
I have developed an application to play the USB mp3 player. For volume controls I have used WaveOutGetVolume and WaveOutSetVolume. The problem is when I run my application and Windows media player in parallel, a mute on my application mutes the media player also. The vice-versa doesn't happen. I want my application to perform like media player.
Any help pls........urgent!!!!!!!!!!!!
kundan kumar das
|
|
|
|
 |
|
 |
the problem is that when you mute you application, you're actually muting the entire sound card. instead, your mute function should do something internally to stop the applications sound from reaching the sound card
Frixoft
What's better - cake or pie? Hard question!
|
|
|
|
 |
|
 |
This is what is supposed to be. As I mention in the article, "This program is equivalent to the "Mute all" check box of Windows Volume Control for Playback.". The Audio Mixer API does not provide per-application functionality.
|
|
|
|
 |
|
 |
For more examples on setting the volume control or reading the current value for playback or record volume, see the following article.
A simple record and playback volume control class
http://www.codeproject.com/audio/volctrl.asp
"A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible." - Freeman Dyson
|
|
|
|
 |
|
 |
hi
i want to play two sound file same time and want to listen the sound of these file
on separtly on left and right speaker,means sound of one file should play on left
speaker and second file should play on right speaker
thank u in advance
malik
|
|
|
|
 |
|
|
 |
|
 |
Hi,
I would like to know what happens if the sound card doesn't have in-built mixer in it?
Say sound card doesn't support mixer (Old PCs) .... so if it doesn't have Mixer in it, would we still be able to set multiple lines ( like Mic, Speaker) as recording lines ( multiple recording lines ) and stream both of them to be recorded on to a single file (say wave file)??
is it possible to do the mixing of audio without Mixer? Please let me know ..
Thank you.
Regards,
Srikanth N D
|
|
|
|
 |
|
 |
Hi
my problem is that i need control the lines of my asiosound card,
(volume of 8 inputs and 8 outputs), what could be the best way?
directx?
windows api?
is there and MFC or OCX?
please, some opinions
regards
candibane cannabirane
|
|
|
|
 |
|
 |
Hi,
I want to set/get the Left-Right Balance. I am not able to find the way using audio mixer API.
Please can anybody help to solve this problem.
Thanks & Regards
candi
|
|
|
|
 |