This commit is contained in:
Atlante45 2015-03-17 16:16:25 +01:00
parent 88b3f14000
commit b0fd28beeb
2 changed files with 4 additions and 4 deletions

View file

@ -309,7 +309,7 @@ void Player::setCurrentFrame(int currentFrame) {
if (isPlaying()) { if (isPlaying()) {
_timer.start(); _timer.start();
setAudionInjectorPosition(); setAudioInjectorPosition();
} else { } else {
_pausedFrame = _currentFrame; _pausedFrame = _currentFrame;
} }
@ -354,7 +354,7 @@ void Player::setCurrentTime(int currentTime) {
if (isPlaying()) { if (isPlaying()) {
_timer.start(); _timer.start();
setAudionInjectorPosition(); setAudioInjectorPosition();
} else { } else {
_pausedFrame = lowestBound; _pausedFrame = lowestBound;
} }
@ -372,7 +372,7 @@ void Player::setAudioOffset(int audioOffset) {
_audioOffset = audioOffset; _audioOffset = audioOffset;
} }
void Player::setAudionInjectorPosition() { void Player::setAudioInjectorPosition() {
int MSEC_PER_SEC = 1000; int MSEC_PER_SEC = 1000;
int SAMPLE_SIZE = 2; // 16 bits int SAMPLE_SIZE = 2; // 16 bits
int CHANNEL_COUNT = 1; int CHANNEL_COUNT = 1;

View file

@ -61,7 +61,7 @@ private:
void setupAudioThread(); void setupAudioThread();
void cleanupAudioThread(); void cleanupAudioThread();
void loopRecording(); void loopRecording();
void setAudionInjectorPosition(); void setAudioInjectorPosition();
bool computeCurrentFrame(); bool computeCurrentFrame();
AvatarData* _avatar; AvatarData* _avatar;