Shows if a volume is being emulated or not via the tooltip and status bar.

This commit is contained in:
lllucius 2013-09-24 06:58:49 +00:00
parent dd09c88ecb
commit efabeb4a79
3 changed files with 15 additions and 1 deletions

View File

@ -707,6 +707,11 @@ bool AudioIO::InputMixerWorks()
return mInputMixerWorks;
}
bool AudioIO::OutputMixerEmulated()
{
return mEmulateMixerOutputVol;
}
wxArrayString AudioIO::GetInputSourceNames()
{
#if defined(USE_PORTMIXER)

View File

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

View File

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