Changeset 10618 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/lib/sound/Makefile.am
r9869 r10618 11 11 ogg_player.cc 12 12 13 noinst_HEADERS = sound_engine.h \ 14 sound_source.h \ 15 sound_buffer.h \ 16 sound_buffer_data.h \ 17 resource_sound_buffer.h \ 18 ogg_player.h 13 noinst_HEADERS = \ 14 alincl.h \ 15 sound_engine.h \ 16 sound_source.h \ 17 sound_buffer.h \ 18 sound_buffer_data.h \ 19 resource_sound_buffer.h \ 20 ogg_player.h -
trunk/src/lib/sound/ogg_player.cc
r9869 r10618 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 { -
trunk/src/lib/sound/ogg_player.h
r9869 r10618 13 13 #include <ogg/ogg.h> 14 14 #include <vorbis/vorbisfile.h> 15 #include "util/thread ing.h"15 #include "util/threads/mutex_locker.h" 16 16 17 17 struct File; -
trunk/src/lib/sound/sound_engine.cc
r9869 r10618 24 24 #include "debug.h" 25 25 #include "parser/preferences/preferences.h" 26 #include " globals.h"26 #include "orxonox_globals.h" 27 27 #include "resource_sound_buffer.h" 28 28 -
trunk/src/lib/sound/sound_engine.h
r9869 r10618 15 15 #include <list> 16 16 #include <stack> 17 #include "thread ing.h"17 #include "threads/mutex.h" 18 18 19 19 #define SOUND_DOPPLER_FACTOR 0.001 //!< A factor for the audible doppler effect
Note: See TracChangeset
for help on using the changeset viewer.