Shows if a volume is being emulated or not via the tooltip and status bar.
This commit is contained in:
parent
dd09c88ecb
commit
efabeb4a79
|
@ -707,6 +707,11 @@ bool AudioIO::InputMixerWorks()
|
|||
return mInputMixerWorks;
|
||||
}
|
||||
|
||||
bool AudioIO::OutputMixerEmulated()
|
||||
{
|
||||
return mEmulateMixerOutputVol;
|
||||
}
|
||||
|
||||
wxArrayString AudioIO::GetInputSourceNames()
|
||||
{
|
||||
#if defined(USE_PORTMIXER)
|
||||
|
|
|
@ -198,6 +198,15 @@ class AUDACITY_DLL_API AudioIO {
|
|||
* disable the UI if it doesn't work.
|
||||
*/
|
||||
bool InputMixerWorks();
|
||||
|
||||
/** @brief Find out if the output level control is being emulated via software attenuation
|
||||
*
|
||||
* Checks the mEmulateMixerOutputVol variable, which is set up in
|
||||
* AudioIO::HandleDeviceChange(). External classes care, because we want to
|
||||
* modify the UI if it doesn't work.
|
||||
*/
|
||||
bool OutputMixerEmulated();
|
||||
|
||||
/** \brief Get the list of inputs to the current mixer device
|
||||
*
|
||||
* Returns an array of strings giving the names of the inputs to the
|
||||
|
|
|
@ -300,7 +300,7 @@ void MixerToolBar::SetToolTips()
|
|||
|
||||
if (mOutputSlider->IsEnabled()) {
|
||||
mOutputSlider->SetToolTip(wxString::Format(
|
||||
_("Output Volume: %.2f"), mOutputSliderVolume));
|
||||
_("Output Volume: %.2f%s"), mOutputSliderVolume, gAudioIO->OutputMixerEmulated() ? _(" (emulated)") : wxT("")));
|
||||
}
|
||||
else {
|
||||
mOutputSlider->SetToolTip(
|
||||
|
|
Loading…
Reference in New Issue