Changeset 7306 in orxonox.OLD for trunk/src/lib/sound/ogg_player.h
- Timestamp:
- Apr 16, 2006, 10:12:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.h
r7305 r7306 20 20 21 21 22 #define OGG_PLAYER_BUFFER_SIZE (8096 * 2)22 #define OGG_PLAYER_BUFFER_SIZE (8096 * 4) 23 23 24 24 … … 33 33 */ 34 34 typedef enum { 35 None = 0x000, 36 FileOpened = 0x100, 37 SourceAllocated = 0x200, 38 BuffersAllocated = 0x400, 39 Stopped = 0x010, 40 Playing = 0x020, 41 Paused = 0x040, 42 Error = 0x001, 35 None = 0x000, //!< Initialized 36 FileOpened = 0x100, //!< File is Opened 37 SourceAllocated = 0x200, //!< Source is Allocated. 38 BuffersAllocated = 0x400, //!< 2 Buffers are Allocated. 39 Stopped = 0x010, //!< OggPlayer is stopped. 40 Playing = 0x020, //!< OggPlayer is Playing. 41 Paused = 0x040, //!< OggPlayer is Paused. 42 Error = 0x001, //!< An Error has occured. 43 43 } State; 44 44 … … 56 56 void jumpTo(float timeCode); 57 57 58 float length(); 58 59 bool isPlaying(); 59 60 bool getState() { return this->state; }; … … 67 68 static int createAudioThread(void* oggPlayer); 68 69 bool playback(); 70 void suspend(); 69 71 bool update(); 70 72
Note: See TracChangeset
for help on using the changeset viewer.