mirror of
https://github.com/lubosz/overte.git
synced 2025-04-18 04:18:17 +02:00
JS hooks
This commit is contained in:
parent
1afdd34577
commit
5f95cbc101
2 changed files with 14 additions and 2 deletions
|
@ -652,6 +652,18 @@ void AvatarData::startPlaying() {
|
|||
_player->startPlaying();
|
||||
}
|
||||
|
||||
void AvatarData::setPlayerVolume(float volume) {
|
||||
if (_player) {
|
||||
_player->setVolume(volume);
|
||||
}
|
||||
}
|
||||
|
||||
void AvatarData::setPlayerAudioOffset(qint64 audioOffset) {
|
||||
if (_player) {
|
||||
_player->setAudioOffset(audioOffset);
|
||||
}
|
||||
}
|
||||
|
||||
void AvatarData::setPlayerFrame(int frame) {
|
||||
if (_player) {
|
||||
_player->setCurrentFrame(frame);
|
||||
|
|
|
@ -100,8 +100,6 @@ enum KeyState {
|
|||
DELETE_KEY_DOWN
|
||||
};
|
||||
|
||||
const glm::vec3 vec3Zero(0.0f);
|
||||
|
||||
class QDataStream;
|
||||
|
||||
class AttachmentData;
|
||||
|
@ -304,6 +302,8 @@ public slots:
|
|||
|
||||
void loadRecording(QString filename);
|
||||
void startPlaying();
|
||||
void setPlayerVolume(float volume);
|
||||
void setPlayerAudioOffset(qint64 audioOffset);
|
||||
void setPlayerFrame(int frame);
|
||||
void setPlayerTime(qint64 time);
|
||||
void setPlayFromCurrentLocation(bool playFromCurrentLocation);
|
||||
|
|
Loading…
Reference in a new issue