mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:29:00 +02:00
cleanup from PR comments
This commit is contained in:
parent
80d33ee251
commit
46dc5bea04
2 changed files with 3 additions and 7 deletions
|
@ -939,11 +939,11 @@ bool AudioClient::outputLocalInjector(bool isStereo, AudioInjector* injector) {
|
|||
// We don't want to stop this localOutput and injector whenever this AudioClient singleton goes idle,
|
||||
// only when the localOutput does. But the connection is to localOutput, so that it happens on the right thread.
|
||||
connect(localOutput, &QAudioOutput::stateChanged, localOutput, [=](QAudio::State state) {
|
||||
if (state == QAudio::IdleState) {
|
||||
if (state == QAudio::IdleState) {
|
||||
localOutput->stop();
|
||||
injector->stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
connect(injector->getLocalBuffer(), &QIODevice::aboutToClose, localOutput, &QAudioOutput::stop);
|
||||
|
||||
|
|
|
@ -84,9 +84,6 @@ signals:
|
|||
void finished();
|
||||
void restarting();
|
||||
|
||||
/*private slots:
|
||||
void finish();
|
||||
*/
|
||||
private:
|
||||
void setupInjection();
|
||||
int64_t injectNextFrame();
|
||||
|
@ -110,7 +107,6 @@ private:
|
|||
|
||||
// when the injector is local, we need this
|
||||
AudioHRTF _localHRTF;
|
||||
// for local injection,
|
||||
friend class AudioInjectorManager;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue