mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +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();
|
_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) {
|
void AvatarData::setPlayerFrame(int frame) {
|
||||||
if (_player) {
|
if (_player) {
|
||||||
_player->setCurrentFrame(frame);
|
_player->setCurrentFrame(frame);
|
||||||
|
|
|
@ -100,8 +100,6 @@ enum KeyState {
|
||||||
DELETE_KEY_DOWN
|
DELETE_KEY_DOWN
|
||||||
};
|
};
|
||||||
|
|
||||||
const glm::vec3 vec3Zero(0.0f);
|
|
||||||
|
|
||||||
class QDataStream;
|
class QDataStream;
|
||||||
|
|
||||||
class AttachmentData;
|
class AttachmentData;
|
||||||
|
@ -304,6 +302,8 @@ public slots:
|
||||||
|
|
||||||
void loadRecording(QString filename);
|
void loadRecording(QString filename);
|
||||||
void startPlaying();
|
void startPlaying();
|
||||||
|
void setPlayerVolume(float volume);
|
||||||
|
void setPlayerAudioOffset(qint64 audioOffset);
|
||||||
void setPlayerFrame(int frame);
|
void setPlayerFrame(int frame);
|
||||||
void setPlayerTime(qint64 time);
|
void setPlayerTime(qint64 time);
|
||||||
void setPlayFromCurrentLocation(bool playFromCurrentLocation);
|
void setPlayFromCurrentLocation(bool playFromCurrentLocation);
|
||||||
|
|
Loading…
Reference in a new issue