mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
Uninitialized member
This commit is contained in:
parent
5b2b0c47c0
commit
6df430660d
2 changed files with 5 additions and 3 deletions
|
@ -33,7 +33,8 @@ AudioInjector::AudioInjector(QObject* parent) :
|
||||||
AudioInjector::AudioInjector(Sound* sound, const AudioInjectorOptions& injectorOptions) :
|
AudioInjector::AudioInjector(Sound* sound, const AudioInjectorOptions& injectorOptions) :
|
||||||
_sound(sound),
|
_sound(sound),
|
||||||
_options(injectorOptions),
|
_options(injectorOptions),
|
||||||
_shouldStop(false)
|
_shouldStop(false),
|
||||||
|
_currentSendPosition(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +44,8 @@ void AudioInjector::setOptions(AudioInjectorOptions& options) {
|
||||||
|
|
||||||
const uchar MAX_INJECTOR_VOLUME = 0xFF;
|
const uchar MAX_INJECTOR_VOLUME = 0xFF;
|
||||||
|
|
||||||
void AudioInjector::injectAudio() {
|
void AudioInjector::injectAudio(int startingPosition) {
|
||||||
|
_currentSendPosition = startingPosition;
|
||||||
|
|
||||||
QByteArray soundByteArray = _sound->getByteArray();
|
QByteArray soundByteArray = _sound->getByteArray();
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
|
|
||||||
int getCurrentSendPosition() const { return _currentSendPosition; }
|
int getCurrentSendPosition() const { return _currentSendPosition; }
|
||||||
public slots:
|
public slots:
|
||||||
void injectAudio();
|
void injectAudio(int startingPosition = 0);
|
||||||
void stop() { _shouldStop = true; }
|
void stop() { _shouldStop = true; }
|
||||||
void setOptions(AudioInjectorOptions& options);
|
void setOptions(AudioInjectorOptions& options);
|
||||||
void setCurrentSendPosition(int currentSendPosition) { _currentSendPosition = currentSendPosition; }
|
void setCurrentSendPosition(int currentSendPosition) { _currentSendPosition = currentSendPosition; }
|
||||||
|
|
Loading…
Reference in a new issue