mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:17:24 +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() {
|
void AudioInjector::injectAudio() {
|
||||||
|
|
||||||
if (!_isStarted) {
|
if (!_isStarted) {
|
||||||
|
|
||||||
// check if we need to offset the sound by some number of seconds
|
// check if we need to offset the sound by some number of seconds
|
||||||
if (_options.secondOffset > 0.0f) {
|
if (_options.secondOffset > 0.0f) {
|
||||||
|
|
||||||
|
@ -93,6 +91,7 @@ void AudioInjector::injectAudio() {
|
||||||
void AudioInjector::restart() {
|
void AudioInjector::restart() {
|
||||||
qDebug() << "Restarting an AudioInjector by stopping and starting over.";
|
qDebug() << "Restarting an AudioInjector by stopping and starting over.";
|
||||||
stop();
|
stop();
|
||||||
|
setIsFinished(false);
|
||||||
QMetaObject::invokeMethod(this, "injectAudio", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, "injectAudio", Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue