mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
Allow scripted audio injectors to have options set.
This commit is contained in:
parent
2e4c782626
commit
3b8a46b87d
2 changed files with 1 additions and 2 deletions
|
@ -93,7 +93,6 @@ void AudioInjector::injectAudio() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioInjector::restart() {
|
void AudioInjector::restart() {
|
||||||
qCDebug(audio) << "Restarting an AudioInjector by stopping and starting over.";
|
|
||||||
connect(this, &AudioInjector::finished, this, &AudioInjector::restartPortionAfterFinished);
|
connect(this, &AudioInjector::finished, this, &AudioInjector::restartPortionAfterFinished);
|
||||||
if (!_isStarted || _isFinished) {
|
if (!_isStarted || _isFinished) {
|
||||||
emit finished();
|
emit finished();
|
||||||
|
|
|
@ -28,7 +28,7 @@ public slots:
|
||||||
void restart() { _injector->restart(); }
|
void restart() { _injector->restart(); }
|
||||||
void stop() { _injector->stop(); }
|
void stop() { _injector->stop(); }
|
||||||
|
|
||||||
void setOptions(AudioInjectorOptions& options) { _injector->setOptions(options); }
|
void setOptions(const AudioInjectorOptions& options) { _injector->setOptions(options); }
|
||||||
|
|
||||||
float getLoudness() const { return _injector->getLoudness(); }
|
float getLoudness() const { return _injector->getLoudness(); }
|
||||||
bool isPlaying() const { return _injector->isPlaying(); }
|
bool isPlaying() const { return _injector->isPlaying(); }
|
||||||
|
|
Loading…
Reference in a new issue