mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-19 01:39:19 +02:00
tell injector it is not finished once restarted
This commit is contained in:
parent
ea52cea5dd
commit
060b0bbfd6
1 changed files with 1 additions and 2 deletions
|
@ -65,9 +65,7 @@ void AudioInjector::setIsFinished(bool isFinished) {
|
|||
}
|
||||
|
||||
void AudioInjector::injectAudio() {
|
||||
|
||||
if (!_isStarted) {
|
||||
|
||||
// check if we need to offset the sound by some number of seconds
|
||||
if (_options.secondOffset > 0.0f) {
|
||||
|
||||
|
@ -93,6 +91,7 @@ void AudioInjector::injectAudio() {
|
|||
void AudioInjector::restart() {
|
||||
qDebug() << "Restarting an AudioInjector by stopping and starting over.";
|
||||
stop();
|
||||
setIsFinished(false);
|
||||
QMetaObject::invokeMethod(this, "injectAudio", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue