• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 781
  • Last Modified:

Audio Mixer Control - CALLBACK

i am using the audio Mixer in my App.
i know how to Open the Mixer and how to change volume
i want to know how to use the CALLBACK option so i will be able to know if someone changed the volume in the volume contorols.
0
talsp
Asked:
talsp
1 Solution
 
chensuCommented:
When you call mixerOpen,

::mixerOpen(&m_hMixer, 0, (DWORD)hWnd, NULL, MIXER_OBJECTF_MIXER | CALLBACK_WINDOW);

The system will send the MM_MIXM_LINE_CHANGE and MM_MIXM_CONTROL_CHANGE messages to the specified window.

ON_MESSAGE(MM_MIXM_LINE_CHANGE, OnMixerLineChange)
ON_MESSAGE(MM_MIXM_CONTROL_CHANGE, OnMixerCtrlChange)
0
 
Shahzad_mcaCommented:
How can I change my input source form Mic to LineIn.Please tell me
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now