 |

|
Hello sir,
Please send me code music mixing on android.
I have need this types of code.
Thanks & Regard,
Shashi kant
|
|
|
|
|

|
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
|
|
|
|

|
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
|
|
|
|
|

|
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
|
|
|
|

|
Is it Possible to record audio/speaker Output and produce an audio file?
Thanks in advance.
|
|
|
|

|
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
|
|
|
|

|
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
|
|
|
|

|
my problem is that i need control the lines of my asio firwire soundcard,
(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
candi
candibane
|
|
|
|

|
Hi,
Can you please tell me how to turn on/off Mic Boost.
Thanks in Advance
|
|
|
|

|
Hi,
When I run the meter program it doesn't work and it displays the message "The control does not exist."
Why does this happen?
Thanks.
|
|
|
|

|
my audio controls were deleted from my add and remove files by mistake. Can you help me find software for reinstallation?
Thanks
clint
|
|
|
|

|
Hi ,
That code is wonderfull . But if i need to write same program in C# , which library in need to use ?
Vikas
|
|
|
|

|
I need a win32 API to set the default recording device for windows. Do you know?
PLease help me? Tks!!!!
|
|
|
|

|
My application needs to control the "Microphone" volume. Using your code I am able to do this on most computers. But, on a few computers instead of the "Microphone" control it changes to the "Rear Mic." On these computers bring up the “Volume Control” dialog, from left to right, “Rear Mic” shows before “Microphone.” On machines where the app works properly the order is “Microphone” then “Rear Mic.”
Is there a way to guarantee to get the “Microphone” control every time?
Best Regards
|
|
|
|

|
they all belong to MIXERLINE_COMPONENTTYPE_SRC_ANALOG type
could you give me example?
best wish!
cvbcbcv
|
|
|
|

|
that is super cool and valuable code u use MFC that warp the actual complex API Audio , So if you can explain in more details how to
1- select a recording device ( record source ) microphone ,mixer ,line in
if u have no time can u upload a fifth example of how to select a recording device between Microfone and Mixer
and we will find more about it
any way i like your super cool code
thanx for sharing
My Second PC Is Your Machine
|
|
|
|

|
Hi
how is it possiable to capture sound from headset (NOT FROM MIC).What i am in need of is
1.to capture sound from mic of a client meachine send to server
2.to capture sound from headset or speaker of a client meachine send to server
3.to play the recived sound in server
I was able to do capture mic of client and send to server and play but the to plese do help me to capture speaker of client system
jobythomas24@gmail.com
|
|
|
|

|
I try to show Mic Volume of Recording control. In Code : BOOL CMeterDlg::amdGetWaveMeterControl() { if (m_hMixer == NULL) { AfxMessageBox("fail 1",MB_ICONSTOP); return FALSE; } // get the destination line MIXERLINE mxlDst; mxlDst.cbStruct = sizeof(MIXERLINE); mxlDst.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_SPEAKERS ; I change "mxlDst.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;" And I can get correct volume on normal audio device. But the same build, it will fail on High Definition Audio device. Does any way to solve? Thanks....
|
|
|
|

|
Some Problem about my current project which is a phone with voicemail.I want to play the welcoming voice and transform it to remote terminal too.So I have the problem let me trapped in.That's How can I use class
CWaveIn or other classes to record the playing Voice?I can't find out where the CWaveIn set the device! :(Can you help me?
|
|
|
|

|
i'm developing karaoke player...
how can i mix Left/Right channel so i can hear from both speaker if i choose left/right channel.
thanks
|
|
|
|

|
Hi,
Can someone tell me how to set the pan control in controls. cos I've tried but it say's that it doesn't have a control like that , what's the problem !
L.A.F
|
|
|
|

|
Hi
my problem is that i need control the lines of my maya1010 soundcard,
(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
Aaron
|
|
|
|

|
Seems like program 3 (wavemeter) doesn't seemed to work on my PC.
Encountering problems on Line 366 in MeterDlg.cpp where it returns FALSE.
|
|
|
|

|
Hello everybody,
I am capturing audio from two different USB headsets in wave files. The problem is that I can hear record very well from the first headset using Directshow but while recording with the second headset the same data is recorded that was with the first one. That is, nothing gets recorded from the second USB headset. Also, the second problem is: I can hear the sound from the first head set to the second set but not from the second headset to the first headset. The application is written using directshow with Visual C++ 6.0 IDE on Windows 2000 platform. The individual headsets work fine.
The problem it appears is related with the audio channels.
Any ideas will be appreciated...
Regards,
Gaurav Saxena
|
|
|
|

|
Hi...
The Program 4 sample is really great, three cheers for working examples !... I am wondering if I can seek assistance or perhaps guidance how to do the same in VB6 though..
Thanks in advance.
Regards
|
|
|
|

|
Hi,
The code doesnt seem to work properlz when using a DSP headset usb (plantronics),
the output lines are OK, but it cannot find the input line, yet i have a microphione on the headset, and hte windows mixer show a "Wave In" in the "record controls"...
Any idea ?
Bart
|
|
|
|

|
I have been looking for a way to do audio mixing. I'm developing an application dealing with audio, and I would like to be able to mix several different WAV files into a single WAV file (so that each sound from the separate WAV files plays simultaneously). Information on how to do this seems elusive. Is there a way to do this with the Audio Mixer Functions? Or perhaps an easier way?
I've been working with DirectX (specifically, DirectMusic and DirectSound) in my application. DirectX is able to mix sounds before it passes the audio to the sound card.. Is there perhaps a way to simply have it re-direct the audio to a WAV file on the hard drive instead?
Eric
|
|
|
|

|
i dont really understand this code very well, im new to api. could anyone tell me how i could just make a program that lets me bind 2 keys, one switches to recording with mic (MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE) and another for recording wave/stereo mix (MIXERLINE_COMPONENTTYPE_SRC_ANALOG)? I also wabnt the key bindings to work if the program is minimized or not in focus.
thanks
please post here or email me at derekl366(at)comcast(dot)net
|
|
|
|

|
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
Shilpa
|
|
|
|

|
I'm writing a DLL library to control the sources which I'm recording from. This is the code that I'm using in order to obtain the source lines avalaible for the recording destination line: MMRESULT mmResult; HMIXER hMixer = NULL; MIXERLINE mixerLine; MIXERCONTROL* mixerControlArray; MIXERLINECONTROLS mixerLineControls; mmResult = mixerOpen(&hMixer, uMxId, 0, 0, MIXER_OBJECTF_MIXER); if (mmResult!=MMSYSERR_NOERROR) { /* Error */ } mixerLine.cbStruct = sizeof(MIXERLINE); mixerLine.dwSource = 0; mixerLine.dwDestination = 1; mmResult = mixerGetLineInfo((HMIXEROBJ)hMixer, &mixerLine, MIXER_GETLINEINFOF_DESTINATION); if (mmResult!=MMSYSERR_NOERROR) { /* Error */ } iConnections = mixerLine.cConnections; if (iConnections>0) { for(i=0; i<iConnections; i++) { mixerLine.cbStruct = sizeof(MIXERLINE); mixerLine.dwSource = i; mixerLine.dwDestination = cDestination; mixerGetLineInfo((HMIXEROBJ)hMixer, &mixerLine, MIXER_GETLINEINFOF_SOURCE); if (mmResult!=MMSYSERR_NOERROR) { /* Error */ } } }
This way I get something like that, for example: Source line. Index = 0 - MIXERLINE_COMPONENTTYPE_SRC_ANALOG Source line. Index = 1 - MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED Source line. Index = 2 - MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED ... But when I get the MIXERCONTROLDETAILS_LISTTEXT in order to mute one of source lines, using the MIXERCONTROL_CONTROLTYPE_MUX control of the corresponding destination line, the items of the list are sorted in a different way. Which is the right way to match the info sued by mixerGetControlDetails and mixerSetControlDetails, and the list of souce lines obtained the way I've mentioned before? I've test it in two different PC and they match in one of them but in the other the order is not the same.
|
|
|
|

|
Hi!
your prog works great, thanks for sharing!
But I have one problem: the prog selects the "Mic 2" recording line of the ESS Maestro 3 soundcard, has anyone an idea, how to select the standard "Microphone" or "Mic 1"?
Thanks in advance!
|
|
|
|

|
Hello
I need a code to:
1) Enable mic for recording..
2) Autoadjust (playing a sound) the mic recording volume level, with the feedback.
Please I'm a student and I really need this. Thanks!
PD: (In VB6 or .NET);
I NEED FEEDBACK
|
|
|
|

|
I cannot setup the microphone to be stillness. How can I change it? Thank you.
|
|
|
|

|
Hi, I want to Select the Mono Mix or Stereo Mix like Program 4. Microphone Select, Can anybody help me, I have already change SelectDlg.cpp line 456 mxl.dwComponentType == MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE to mxl.dwComponentType == MIXERLINE_COMPONENTTYPE_SRC_ANALOG
, and Now i can get the "Line in", not Mono Mix or Stereo Mix, Can anybody help me!! Thanks!!
|
|
|
|

|
I need to set the left/right balance,but when I use the MIXERCONTROL_CONTROLTYPE_PAN instead of MIXERCONTROL_CONTROLTYPE_VOLUME in demo program #2 it doesn't work, does any knows how to make it successful? thanks a lot!!
|
|
|
|

|
Does the Direct Sound API (or any other part of Windows) provide the capability to route the mixed audio samples back to the application. That means the mixed audio stream is not played locally via the speaker, but it shall be sent via RTP protocol to another PC and played there.
|
|
|
|

|
I need 2 source codes.
The first one for getting Mute the Microphone
and another code for adjusting the Microphone volume
to run together JAVA by using JNI for my senior project.
Would anyone know where can I find them, plz?
|
|
|
|

|
I a student in the final year and for my terminal project I thought of a voice recognition application.
But first I need some directions about capturing mic's signal in Windows.
Can anyone help me with a source code or direct me to one ? Or just to explain the basics ? And one more question : is there any posibility of capturing microphone's signal directly as mathematical values (amplitude,frequency,etc.) without using a temporarly wav file first ?
Pls contact me if you have usefull info's.Much apreciated...
Contact : ro_angel_bv@hotmail.com
|
|
|
|

|
Hi,
Thanks Su for his greatest work. But I found that on some hardware such as CMedia, the last program will not work because default DST_WAVEIN does not have mux control. You have to get the second one to get mux control. So I change the program to get the second control.
The original code segment in the function "BOOL CSelectDlg::amdGetMicSelectControl()" is as follows:
// get dwLineID
MIXERLINE mxl;
mxl.cbStruct = sizeof(MIXERLINE);
mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;
if (::mixerGetLineInfo(reinterpret_cast(m_hMixer),
&mxl,
MIXER_OBJECTF_HMIXER |
MIXER_GETLINEINFOF_COMPONENTTYPE)
!= MMSYSERR_NOERROR)
{
return FALSE;
}
Now I change it to :
DWORD dwCap;
MIXERLINE mxl;
// Find out what control line is we need.
// Search all control line
// get Line information for line control
for ( dwCap = 0 ; dwCap < m_mxcaps.cDestinations ; dwCap ++ ) {
// Initialize MIXERLINE structure
::ZeroMemory(&mxl, sizeof(mxl));
mxl.cbStruct = sizeof(MIXERLINE);
mxl.dwDestination = dwCap;
mxl.dwSource = 0 ; // This must be set.
// Get mixer line information to determine which line having mic ntrol
m_Result = ::mixerGetLineInfo(reinterpret_cast(m_hMixer)
,&mxl
,MIXER_OBJECTF_HMIXER | MIXER_GETLINEINFOF_DESTINATION );
if ( m_Result != MMSYSERR_NOERROR){
if ( m_hMixer != NULL )
::mixerClose(m_hMixer);
return -1 ;
}
if ( mxl.dwComponentType == MIXERLINE_COMPONENTTYPE_DST_WAVEIN && mxl.cControls > 0 ) {
// The line is found.
break;
}
}
if ( dwCap > m_mxcaps.cDestinations ) {
// No line is found.
if ( m_hMixer != NULL )
::mixerClose(m_hMixer);
return -1;
}
Hope it will help others.
|
|
|
|

|
Hi There .,
How can I control all volume controls for Recording at the same time ,like you have specifled in your fourth Demo .? It demonstrates only for Microphone In line . I would like to display Stero Mix , Mono In, Microphone and select one at a time similar to system Volume Recording control..
Thanks in Advance..
Best Regards,
Dillip.
|
|
|
|
 |