mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
Extra spaces
This commit is contained in:
parent
af341247af
commit
7ab8c7750c
3 changed files with 1 additions and 4 deletions
|
@ -40,7 +40,6 @@ private:
|
||||||
AudioInjectorOptions _options;
|
AudioInjectorOptions _options;
|
||||||
bool _shouldStop;
|
bool _shouldStop;
|
||||||
int _currentSendPosition;
|
int _currentSendPosition;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(AudioInjector*)
|
Q_DECLARE_METATYPE(AudioInjector*)
|
||||||
|
|
|
@ -625,7 +625,7 @@ int AvatarData::playerCurrentFrame() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int AvatarData::playerFrameNumber() {
|
int AvatarData::playerFrameNumber() {
|
||||||
return (_player) ? _player->getRecording()->getFrameNumber() : 0;
|
return (_player && _player->getRecording()) ? _player->getRecording()->getFrameNumber() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarData::loadRecording(QString filename) {
|
void AvatarData::loadRecording(QString filename) {
|
||||||
|
@ -722,7 +722,6 @@ void AvatarData::pausePlayer() {
|
||||||
if (_player) {
|
if (_player) {
|
||||||
_player->pausePlayer();
|
_player->pausePlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarData::stopPlaying() {
|
void AvatarData::stopPlaying() {
|
||||||
|
|
|
@ -279,7 +279,6 @@ void Player::setCurrentTime(qint64 currentTime) {
|
||||||
(float)(currentTime - _recording->getFrameTimestamp(lowestBound)) /
|
(float)(currentTime - _recording->getFrameTimestamp(lowestBound)) /
|
||||||
(float)(_recording->getFrameTimestamp(highestBound) - _recording->getFrameTimestamp(lowestBound));
|
(float)(_recording->getFrameTimestamp(highestBound) - _recording->getFrameTimestamp(lowestBound));
|
||||||
|
|
||||||
|
|
||||||
if (_recording->getFrameTimestamp(bestGuess) <= currentTime) {
|
if (_recording->getFrameTimestamp(bestGuess) <= currentTime) {
|
||||||
if (currentTime < _recording->getFrameTimestamp(bestGuess + 1)) {
|
if (currentTime < _recording->getFrameTimestamp(bestGuess + 1)) {
|
||||||
lowestBound = bestGuess;
|
lowestBound = bestGuess;
|
||||||
|
|
Loading…
Reference in a new issue