@@ -99,7 +99,7 @@ class AudioEventRTS
9999 void decreaseLoopCount ( void );
100100 Bool hasMoreLoops ( void ) const ;
101101
102- void setAudioEventInfo ( const AudioEventInfo *eventInfo ) const ;
102+ void setAudioEventInfo ( const AudioEventInfo *eventInfo ) const ; // is mutable
103103 const AudioEventInfo *getAudioEventInfo ( void ) const ;
104104
105105 void setPlayingHandle ( AudioHandle handle ); // for ID of this audio piece.
@@ -141,8 +141,8 @@ class AudioEventRTS
141141 Int getPlayerIndex ( void ) const ;
142142 void setPlayerIndex ( Int playerNdx );
143143
144- Int getPlayingAudioIndex ( void ) { return m_playingAudioIndex; };
145- void setPlayingAudioIndex ( Int pai ) { m_playingAudioIndex = pai; };
144+ Int getPlayingAudioIndex ( void ) const { return m_playingAudioIndex; }
145+ void setPlayingAudioIndex ( Int pai ) const { m_playingAudioIndex = pai; } // is mutable
146146
147147 Bool getUninterruptible ( ) const { return m_uninterruptible; }
148148 void setUninterruptible ( Bool uninterruptible ) { m_uninterruptible = uninterruptible; }
@@ -191,7 +191,7 @@ class AudioEventRTS
191191 Real m_volumeShift; // /< Volume shift that should occur on this piece of audio
192192 Real m_delay; // /< Amount to delay before playing this sound
193193 Int m_loopCount; // /< The current loop count value. Only valid if this is a looping type event or the override has been set.
194- Int m_playingAudioIndex; // /< The sound index we are currently playing. In the case of non-random, we increment this to move to the next sound
194+ mutable Int m_playingAudioIndex; // /< The sound index we are currently playing. In the case of non-random, we increment this to move to the next sound
195195 Int m_allCount; // /< If this sound is an ALL type, then this is how many sounds we have played so far.
196196
197197 Int m_playerIndex; // /< The index of the player who owns this sound. Used for sounds that should have an owner, but don't have an object, etc.
0 commit comments