31 INLINE
void OpenALAudioSound::
32 set_calibrated_clock(
double rtc,
double t,
double accel) {
33 _calibrated_clock_scale = _playing_rate * accel;
34 _calibrated_clock_base = rtc - (t / _calibrated_clock_scale);
42 INLINE
double OpenALAudioSound::
43 get_calibrated_clock(
double rtc)
const {
44 return (rtc - _calibrated_clock_base) * _calibrated_clock_scale;
53 void OpenALAudioSound::
54 require_sound_data() {
56 _sd = _manager->get_sound_data(_movie, _desired_mode);
58 audio_error(
"Could not open audio " << _movie->get_filename());
70 void OpenALAudioSound::
71 release_sound_data() {
72 if ((_sd!=0) && (!_movie->get_filename().empty())) {
73 _manager->decrement_client_count(_sd);