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:
parent
27f19ec2fa
commit
8337b935f9
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -63,7 +63,6 @@ public:
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
qreal outputVolume() const;
|
||||
void setOutputVolume(qreal volume);
|
||||
|
||||
qreal minInputGain() const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user