Ref T730, function to check range for input/output volume

This commit is contained in:
Klaus Basan
2019-09-29 18:43:24 +02:00
committed by Mat Sutcliffe
parent 905c487451
commit 09b38b4e6d
3 changed files with 25 additions and 11 deletions

View File

@@ -37,6 +37,11 @@ namespace BlackMisc
static constexpr int OutMin = 0;
//! @}
//! Make sure the volume is within the range @{
static int fixOutVolume(int v);
static int fixInVolume(int v);
//! @}
//! Default constructor.
CSettings();
@@ -112,8 +117,8 @@ namespace BlackMisc
QString m_notificationSoundDir;
int m_notification = static_cast<int>(CNotificationSounds::DefaultNotifications); //!< play notification for notification x, a little trick to use a string here (streamable, hashable, ..)
int m_notificationVolume = 90; //!< 0-90
int m_outVolume = 100; //!< 0-300, AFV
int m_inVolume = 0; //!< AFV range
int m_outVolume = 50; //!< 0-100, AFV
int m_inVolume = 50; //!< AFV range
bool m_audioEffects = true; //!< Audio effects en
void initNotificationFlags(); //!< init flags