mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:13:47 +02:00
emit mutedByMixer signal for a noisy mute
This commit is contained in:
parent
d617b71232
commit
1f4ac0f17c
3 changed files with 4 additions and 2 deletions
|
@ -420,6 +420,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) :
|
|||
connect(audioIO.data(), &AudioClient::destroyed, audioThread, &QThread::quit);
|
||||
connect(audioThread, &QThread::finished, audioThread, &QThread::deleteLater);
|
||||
connect(audioIO.data(), &AudioClient::muteToggled, this, &Application::audioMuteToggled);
|
||||
connect(audioIO.data(), &AudioClient::mutedByMixer, this, &AudioScriptingInterface::mutedByMixer);
|
||||
connect(audioIO.data(), &AudioClient::receivedFirstPacket,
|
||||
&AudioScriptingInterface::getInstance(), &AudioScriptingInterface::receivedFirstPacket);
|
||||
connect(audioIO.data(), &AudioClient::disconnected,
|
||||
|
|
|
@ -574,8 +574,8 @@ void AudioClient::handleNoisyMutePacket(QSharedPointer<NLPacket> packet) {
|
|||
if (!_muted) {
|
||||
toggleMute();
|
||||
|
||||
// TODO reimplement on interface side
|
||||
//AudioScriptingInterface::getInstance().mutedByMixer();
|
||||
// have the audio scripting interface emit a signal to say we were muted by the mixer
|
||||
emit mutedByMixer();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -188,6 +188,7 @@ public slots:
|
|||
|
||||
signals:
|
||||
bool muteToggled();
|
||||
void mutedByMixer();
|
||||
void inputReceived(const QByteArray& inputSamples);
|
||||
void outputBytesToNetwork(int numBytes);
|
||||
void inputBytesFromNetwork(int numBytes);
|
||||
|
|
Loading…
Reference in a new issue