24 INLINE
void OpenALAudioSound::
25 set_calibrated_clock(
double rtc,
double t,
double accel) {
26 _calibrated_clock_scale = _playing_rate * accel;
27 _calibrated_clock_base = rtc - (t / _calibrated_clock_scale);
33 INLINE
double OpenALAudioSound::
34 get_calibrated_clock(
double rtc)
const {
35 return (rtc - _calibrated_clock_base) * _calibrated_clock_scale;
43 INLINE
bool OpenALAudioSound::
44 require_sound_data() {
46 _sd = _manager->get_sound_data(_movie, _desired_mode);
48 audio_error(
"Could not open audio " << _movie->get_filename());
64 INLINE
void OpenALAudioSound::
65 release_sound_data(
bool force) {
66 if (!has_sound_data())
return;
68 if (force || !_movie->get_filename().empty()) {
69 _manager->decrement_client_count(_sd);
77 INLINE
bool OpenALAudioSound::
79 return _manager !=
nullptr;
88 INLINE
bool OpenALAudioSound::
99 INLINE
bool OpenALAudioSound::
100 has_sound_data()
const {
101 return _sd !=
nullptr;