mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 04:39:51 +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,
|
// 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.
|
// 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) {
|
connect(localOutput, &QAudioOutput::stateChanged, localOutput, [=](QAudio::State state) {
|
||||||
if (state == QAudio::IdleState) {
|
if (state == QAudio::IdleState) {
|
||||||
localOutput->stop();
|
localOutput->stop();
|
||||||
injector->stop();
|
injector->stop();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(injector->getLocalBuffer(), &QIODevice::aboutToClose, localOutput, &QAudioOutput::stop);
|
connect(injector->getLocalBuffer(), &QIODevice::aboutToClose, localOutput, &QAudioOutput::stop);
|
||||||
|
|
||||||
|
|
|
@ -84,9 +84,6 @@ signals:
|
||||||
void finished();
|
void finished();
|
||||||
void restarting();
|
void restarting();
|
||||||
|
|
||||||
/*private slots:
|
|
||||||
void finish();
|
|
||||||
*/
|
|
||||||
private:
|
private:
|
||||||
void setupInjection();
|
void setupInjection();
|
||||||
int64_t injectNextFrame();
|
int64_t injectNextFrame();
|
||||||
|
@ -110,7 +107,6 @@ private:
|
||||||
|
|
||||||
// when the injector is local, we need this
|
// when the injector is local, we need this
|
||||||
AudioHRTF _localHRTF;
|
AudioHRTF _localHRTF;
|
||||||
// for local injection,
|
|
||||||
friend class AudioInjectorManager;
|
friend class AudioInjectorManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue