Changeset 10577 in orxonox.OLD for branches/cleanup/src/lib/sound
- Timestamp:
- Feb 7, 2007, 9:31:36 PM (18 years ago)
- Location:
- branches/cleanup/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/lib/sound/ogg_player.cc
r9869 r10577 79 79 bool OggPlayer::open(const std::string& fileName) 80 80 { 81 OrxThread::MutexLock musicLock(&this->musicMutex);81 OrxThread::MutexLocker musicLock(&this->musicMutex); 82 82 // release old Ogg-File (if loaded) 83 83 if (this->state & OggPlayer::FileOpened) … … 212 212 if (this->state & OggPlayer::FileOpened) 213 213 { 214 OrxThread::MutexLock musicLock(&this->musicMutex);214 OrxThread::MutexLocker musicLock(&this->musicMutex); 215 215 ov_time_seek(&this->oggStream, timeCode); 216 216 } … … 263 263 { 264 264 { 265 OrxThread::MutexLock musicLock(&ogg->musicMutex);265 OrxThread::MutexLocker musicLock(&ogg->musicMutex); 266 266 ogg->update(); 267 267 } … … 286 286 this->state |= OggPlayer::Playing; 287 287 288 OrxThread::MutexLock musicLock(&this->musicMutex);288 OrxThread::MutexLocker musicLock(&this->musicMutex); 289 289 if(!this->stream(this->buffers[0]) || !this->stream(this->buffers[1])) 290 290 { -
branches/cleanup/src/lib/sound/ogg_player.h
r10575 r10577 13 13 #include <ogg/ogg.h> 14 14 #include <vorbis/vorbisfile.h> 15 #include "util/threads/ threading.h"15 #include "util/threads/mutex_locker.h" 16 16 17 17 struct File;
Note: See TracChangeset
for help on using the changeset viewer.