MCPcopy Create free account
hub / github.com/audacity/audacity / GetMixer

Method GetMixer

libraries/lib-audio-io/AudioIO.cpp:400–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void AudioIO::GetMixer(int *recordDevice, float *recordVolume,
401 float *playbackVolume)
402{
403 *playbackVolume = GetMixerOutputVol();
404
405#if defined(USE_PORTMIXER)
406
407 PxMixer *mixer = mPortMixer;
408
409 if( mixer )
410 {
411 *recordDevice = Px_GetCurrentInputSource(mixer);
412
413 if (mInputMixerWorks)
414 *recordVolume = Px_GetInputVolume(mixer);
415 else
416 *recordVolume = 1.0f;
417
418 return;
419 }
420
421#endif
422
423 *recordDevice = 0;
424 *recordVolume = 1.0f;
425}
426
427bool AudioIO::InputMixerWorks()
428{

Callers 6

UpdateSliderControlMethod · 0.80
SetMixerMethod · 0.80
recordVolumeMethod · 0.80
setRecordVolumeMethod · 0.80
playbackVolumeMethod · 0.80
setPlaybackVolumeMethod · 0.80

Calls 3

GetMixerOutputVolFunction · 0.85
Px_GetCurrentInputSourceFunction · 0.85
Px_GetInputVolumeFunction · 0.85

Tested by

no test coverage detected