Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7308 in orxonox.OLD for trunk/src/lib/sound/ogg_player.h


Ignore:
Timestamp:
Apr 16, 2006, 11:08:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added a mutex, that should prevent the SoundEngine from failing, when jumping around in the file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/ogg_player.h

    r7307 r7308  
    2020
    2121
    22 #define OGG_PLAYER_BUFFER_SIZE (8096 * 4)
     22#define OGG_PLAYER_BUFFER_SIZE (8096 * 2)
    2323
    2424
     
    6666
    6767private:
    68   static int createAudioThread(void* oggPlayer);
     68  static int musicThread(void* oggPlayer);
    6969  bool playback();
    7070  void suspend();
     
    8787  unsigned int        state;                //!< The States the OggPlayer is in (this can be multiple entries from OggPlayer::State).
    8888
    89   SDL_Thread*         musicThread;          //!< The Thread in which music is Played back.
     89  SDL_Thread*         musicThreadID;        //!< The Thread in which music is Played back.
     90  SDL_mutex*          musicMutex;           //!< A Mutex so that the two threads do not interfere.
    9091};
    9192
Note: See TracChangeset for help on using the changeset viewer.