mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Allow volume to be set after start()
This commit is contained in:
parent
ffd0971020
commit
599ee2651e
@ -189,3 +189,9 @@ qint64 AudioInput::writeData(const char *data, qint64 len)
|
||||
return len;
|
||||
}
|
||||
|
||||
void AudioInput::setVolume(float volume)
|
||||
{
|
||||
m_volume = volume;
|
||||
if (m_audioInput != nullptr)
|
||||
m_audioInput->setVolume(m_volume);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
|
||||
uint getRate() const { return m_audioFormat.sampleRate(); }
|
||||
void setOnExit(bool onExit) { m_onExit = onExit; }
|
||||
void setVolume(float volume) { m_volume = volume; }
|
||||
void setVolume(float volume);
|
||||
|
||||
private:
|
||||
QMutex m_mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user