- Timestamp:
- Apr 16, 2006, 11:46:15 PM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r7308 r7309 158 158 } 159 159 160 160 /** 161 * @brief stop the OggPlayer from Playing. 162 */ 161 163 void OggPlayer::stop() 162 164 { … … 168 170 } 169 171 172 /** 173 * @brief Pause the Playing. 174 */ 170 175 void OggPlayer::pause() 171 176 { … … 268 273 this->state |= OggPlayer::Playing; 269 274 275 SDL_mutexP(this->musicMutex); 270 276 if(!this->stream(this->buffers[0]) || !this->stream(this->buffers[1])) 271 return false; 277 { 278 return false; 279 SDL_mutexV(this->musicMutex); 280 } 272 281 273 282 alSourceQueueBuffers(this->source, 2, this->buffers); … … 275 284 SoundEngine::checkError("OggPlayer::playback()::alSourceQueueBuffers", __LINE__); 276 285 277 278 286 alSourcePlay(this->source); 279 287 if (DEBUG >= 3) 280 288 SoundEngine::checkError("OggPlayer::playback()::alSourcePlay", __LINE__); 289 SDL_mutexV(this->musicMutex); 281 290 return true; 282 291 } -
trunk/src/lib/sound/ogg_player.h
r7308 r7309 45 45 OggPlayer(const std::string& fileName = ""); 46 46 virtual ~OggPlayer(); 47 /** @param state compare this State with the internal State */47 /** @param state compare this State with the internal State @returns true on match */ 48 48 bool operator==(OggPlayer::State state) { return this->state & state; }; 49 49
Note: See TracChangeset
for help on using the changeset viewer.