cleanup from PR comments

This commit is contained in:
David Kelly 2016-07-11 09:31:05 -07:00
parent 80d33ee251
commit 46dc5bea04
2 changed files with 3 additions and 7 deletions

View file

@ -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);

View file

@ -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;
};