Skip to content

Commit cb85d01

Browse files
committed
openal: Always use INLINE in .I files
1 parent a10cd7d commit cb85d01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

panda/src/audiotraits/openalAudioSound.I

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ get_calibrated_clock(double rtc) const {
4040
*
4141
* Returns true on success, false on failure.
4242
*/
43-
bool OpenALAudioSound::
43+
INLINE bool OpenALAudioSound::
4444
require_sound_data() {
4545
if (_sd==0) {
4646
_sd = _manager->get_sound_data(_movie, _desired_mode);
@@ -61,7 +61,7 @@ require_sound_data() {
6161
* so. The `force` argument overrides this, indicating we don't intend to
6262
* reacquire the sound data.
6363
*/
64-
void OpenALAudioSound::
64+
INLINE void OpenALAudioSound::
6565
release_sound_data(bool force) {
6666
if (!has_sound_data()) return;
6767

@@ -74,7 +74,7 @@ release_sound_data(bool force) {
7474
/**
7575
* Checks if the sound has NOT been cleaned up yet.
7676
*/
77-
bool OpenALAudioSound::
77+
INLINE bool OpenALAudioSound::
7878
is_valid() const {
7979
return _manager != NULL;
8080
}
@@ -85,7 +85,7 @@ is_valid() const {
8585
*
8686
* This is mainly intended for use in asserts.
8787
*/
88-
bool OpenALAudioSound::
88+
INLINE bool OpenALAudioSound::
8989
is_playing() const {
9090
// Manager only gives us a _source if we need it (to talk to OpenAL), so:
9191
return _source != 0;
@@ -96,7 +96,7 @@ is_playing() const {
9696
*
9797
* This is mainly intended for use in asserts.
9898
*/
99-
bool OpenALAudioSound::
99+
INLINE bool OpenALAudioSound::
100100
has_sound_data() const {
101101
return _sd != 0;
102102
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy