Mercurial > fife-parpg
comparison engine/core/audio/soundemitter.h @ 378:64738befdf3b
bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 11 Jan 2010 23:34:52 +0000 |
parents | 11896fe26c1d |
children | e584b0b8b4a2 |
comparison
equal
deleted
inserted
replaced
377:fe6fb0e0ed23 | 378:64738befdf3b |
---|---|
52 SoundEmitter(SoundManager* manager, SoundClipPool* pool, unsigned int uid); | 52 SoundEmitter(SoundManager* manager, SoundClipPool* pool, unsigned int uid); |
53 ~SoundEmitter(); | 53 ~SoundEmitter(); |
54 | 54 |
55 /** Returns the emitter-id | 55 /** Returns the emitter-id |
56 */ | 56 */ |
57 unsigned int getID() { | 57 unsigned int getID() const{ |
58 return m_emitterid; | 58 return m_emitterid; |
59 } | 59 } |
60 | 60 |
61 /** Sets Positioning-Type | 61 /** Sets Positioning-Type |
62 * Default is false | 62 * Default is false |
138 | 138 |
139 /** Tests if the audio data is stereo data or mono. | 139 /** Tests if the audio data is stereo data or mono. |
140 * | 140 * |
141 * @return Returns true if the audio data is stereo, false if mono. | 141 * @return Returns true if the audio data is stereo, false if mono. |
142 */ | 142 */ |
143 bool isStereo() { | 143 bool isStereo() const{ |
144 if (m_soundclip) { | 144 if (m_soundclip) { |
145 return m_soundclip->getDecoder()->isStereo(); | 145 return m_soundclip->getDecoder()->isStereo(); |
146 } | 146 } |
147 return false; | 147 return false; |
148 } | 148 } |
149 | 149 |
150 /** Returns the bit resolution | 150 /** Returns the bit resolution |
151 */ | 151 */ |
152 short getBitResolution() { | 152 short getBitResolution() const { |
153 if (m_soundclip) { | 153 if (m_soundclip) { |
154 return m_soundclip->getDecoder()->getBitResolution(); | 154 return m_soundclip->getDecoder()->getBitResolution(); |
155 } | 155 } |
156 return 0; | 156 return 0; |
157 } | 157 } |
158 | 158 |
159 /** Returns the sample rate | 159 /** Returns the sample rate |
160 */ | 160 */ |
161 unsigned long getSampleRate() { | 161 unsigned long getSampleRate() const{ |
162 if (m_soundclip) { | 162 if (m_soundclip) { |
163 return m_soundclip->getDecoder()->getSampleRate(); | 163 return m_soundclip->getDecoder()->getSampleRate(); |
164 } | 164 } |
165 return 0; | 165 return 0; |
166 } | 166 } |