@@ -111,25 +111,25 @@ namespace RTE {
111
111
// / Gets the audio management system object used for playing all audio.
112
112
// / </summary>
113
113
// / <returns>The audio management system object used by AudioMan for playing audio.</returns>
114
- FMOD::System *GetAudioSystem () { return m_AudioSystem; }
114
+ FMOD::System *GetAudioSystem () const { return m_AudioSystem; }
115
115
116
116
// / <summary>
117
117
// / Reports whether audio is enabled.
118
118
// / </summary>
119
119
// / <returns>Whether audio is enabled.</returns>
120
- bool IsAudioEnabled () { return m_AudioEnabled; }
120
+ bool IsAudioEnabled () const { return m_AudioEnabled; }
121
121
122
122
// / <summary>
123
123
// / Returns the number of audio channels currently used.
124
124
// / </summary>
125
125
// / <returns>The number of audio channels currently used.</returns>
126
- int GetPlayingChannelCount () { int channelCount; return m_AudioSystem->getChannelsPlaying (&channelCount, NULL ) == FMOD_OK ? channelCount : 0 ; }
126
+ int GetPlayingChannelCount () const { int channelCount; return m_AudioSystem->getChannelsPlaying (&channelCount, NULL ) == FMOD_OK ? channelCount : 0 ; }
127
127
128
128
// / <summary>
129
129
// / Returns the number of audio channels available in total.
130
130
// / </summary>
131
131
// / <returns>The number of audio channels available in total.</returns>
132
- int GetTotalChannelCount () { int channelCount; return m_AudioSystem->getSoftwareChannels (&channelCount) == FMOD_OK ? channelCount : 0 ; }
132
+ int GetTotalChannelCount () const { int channelCount; return m_AudioSystem->getSoftwareChannels (&channelCount) == FMOD_OK ? channelCount : 0 ; }
133
133
134
134
// / <summary>
135
135
// / Gets the global pitch scalar value for all sounds and music.
@@ -151,7 +151,7 @@ namespace RTE {
151
151
// / Reports whether any music stream is currently playing.
152
152
// / </summary>
153
153
// / <returns>Whether any music stream is currently playing.</returns>
154
- bool IsMusicPlaying () { bool isPlayingMusic; return m_AudioEnabled && m_MusicChannelGroup->isPlaying (&isPlayingMusic) == FMOD_OK ? isPlayingMusic : false ; }
154
+ bool IsMusicPlaying () const { bool isPlayingMusic; return m_AudioEnabled && m_MusicChannelGroup->isPlaying (&isPlayingMusic) == FMOD_OK ? isPlayingMusic : false ; }
155
155
156
156
// / <summary>
157
157
// / Gets the volume of music. Does not get volume of sounds.
@@ -188,7 +188,7 @@ namespace RTE {
188
188
// / Gets the position of playback of the current music stream, in seconds.
189
189
// / </summary>
190
190
// / <returns>The current position of the current stream playing, in seconds.</returns>
191
- double GetMusicPosition ();
191
+ double GetMusicPosition () const ;
192
192
193
193
// / <summary>
194
194
// / Sets the music to a specific position in the song.
@@ -352,7 +352,7 @@ namespace RTE {
352
352
// / Returns true if manager is in multiplayer mode.
353
353
// / </summary>
354
354
// / <returns>True if in multiplayer mode.</returns>
355
- bool IsInMultiplayerMode () { return m_IsInMultiplayerMode; }
355
+ bool IsInMultiplayerMode () const { return m_IsInMultiplayerMode; }
356
356
357
357
// / <summary>
358
358
// / Sets the multiplayer mode flag.
@@ -468,14 +468,14 @@ namespace RTE {
468
468
// / </summary>
469
469
// / <param name="vector">The RTE Vector to get as an FMOD_VECTOR.</param>
470
470
// / <returns>The FMOD_VECTOR that corresponds to the given RTE Vector.</returns>
471
- FMOD_VECTOR GetAsFMODVector (const Vector &vector, float zValue = 0 );
471
+ FMOD_VECTOR GetAsFMODVector (const Vector &vector, float zValue = 0 ) const ;
472
472
473
473
// / <summary>
474
474
// / Gets the corresponding RTE Vector for a given FMOD_VECTOR.
475
475
// / </summary>
476
476
// / <param name="fmodVector">The FMOD_VECTOR to get as an RTE Vector.</param>
477
477
// / <returns>The RTE Vector that corresponds to the given FMOD_VECTOR.</returns>
478
- Vector GetAsVector (FMOD_VECTOR fmodVector);
478
+ Vector GetAsVector (FMOD_VECTOR fmodVector) const ;
479
479
480
480
// / <summary>
481
481
// / Clears all the member variables of this AudioMan, effectively resetting the members of this abstraction level only.
0 commit comments