1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(audio): Remove unused OpenAL::outputVolume

This commit is contained in:
Anthony Bilinski 2022-03-21 18:44:53 -07:00
parent 27f19ec2fa
commit 8337b935f9
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
3 changed files with 0 additions and 22 deletions

View File

@ -35,9 +35,6 @@
* @var IAudioControl::AUDIO_FRAME_SAMPLE_COUNT
* @brief Frame sample count
*
* @fn qreal IAudioControl::outputVolume() const
* @brief Returns the current output volume (between 0 and 1)
*
* @fn void IAudioControl::setOutputVolume(qreal volume)
* @brief Set the master output volume.
*
@ -105,7 +102,6 @@ class IAudioControl : public QObject
public:
virtual ~IAudioControl() = default;
virtual qreal outputVolume() const = 0;
virtual void setOutputVolume(qreal volume) = 0;
virtual qreal maxOutputVolume() const = 0;
virtual qreal minOutputVolume() const = 0;

View File

@ -121,23 +121,6 @@ void OpenAL::checkAlcError(ALCdevice* device) noexcept
qWarning("OpenAL error: %d", alc_err);
}
/**
* @brief Returns the current output volume (between 0 and 1)
*/
qreal OpenAL::outputVolume() const
{
QMutexLocker locker(&audioLock);
ALfloat volume = 0.0;
if (alOutDev) {
alGetListenerf(AL_GAIN, &volume);
checkAlError();
}
return volume;
}
/**
* @brief Set the master output volume.
*

View File

@ -63,7 +63,6 @@ public:
{
return 0;
}
qreal outputVolume() const;
void setOutputVolume(qreal volume);
qreal minInputGain() const;