Renamed runtime functions to make more sense
This commit is contained in:
@@ -22,8 +22,9 @@ public:
|
|||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
SoundState GetState();
|
SoundState GetState();
|
||||||
float GetTotalRuntime();
|
float GetDuration();
|
||||||
float GetRuntime();
|
float GetPlaybackTime();
|
||||||
|
bool SetRuntime();
|
||||||
void SetPosition(Magnum::Vector3 position);
|
void SetPosition(Magnum::Vector3 position);
|
||||||
Magnum::Vector3 GetPosition();
|
Magnum::Vector3 GetPosition();
|
||||||
void SetVolume(float value);
|
void SetVolume(float value);
|
||||||
|
@@ -27,13 +27,13 @@ Sound::Sound(Engine *engine, std::function<void(Sound *)> setupFunction,
|
|||||||
Sound::~Sound() { ma_sound_uninit(&maSound); }
|
Sound::~Sound() { ma_sound_uninit(&maSound); }
|
||||||
Sound::SoundState Sound::GetState() { return state; }
|
Sound::SoundState Sound::GetState() { return state; }
|
||||||
|
|
||||||
float Sound::GetTotalRuntime() {
|
float Sound::GetDuration() {
|
||||||
float time;
|
float time;
|
||||||
ma_sound_get_length_in_seconds(&this->maSound, &time);
|
ma_sound_get_length_in_seconds(&this->maSound, &time);
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
float Sound::GetRuntime() {
|
float Sound::GetPlaybackTime() {
|
||||||
float time;
|
float time;
|
||||||
ma_sound_get_cursor_in_seconds(&this->maSound, &time);
|
ma_sound_get_cursor_in_seconds(&this->maSound, &time);
|
||||||
return time;
|
return time;
|
||||||
|
Reference in New Issue
Block a user