mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 13:51:47 -05:00
Allow volume to be set after start()
This commit is contained in:
parent
943ae81750
commit
162112a5c0
@ -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