Changeset 6871 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Jan 30, 2006, 9:39:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.h
r6842 r6871 20 20 21 21 22 #define BUFFER_SIZE ( 4096 * 4)22 #define BUFFER_SIZE (8096 * 4) 23 23 24 24 25 25 // the definition of a Ogg-Player 26 26 class OggPlayer : public BaseObject 27 28 29 27 { 28 public: 29 OggPlayer(const char* fileName = NULL); 30 30 31 32 33 34 35 36 31 bool open(const char* fileName); 32 void release(); 33 void debug(); 34 bool playback(); 35 bool playing(); 36 bool update(); 37 37 38 38 protected: 39 39 40 41 42 43 40 bool stream(ALuint buffer); 41 void empty(); 42 void check(); 43 const char* errorString(int code); 44 44 45 45 private: 46 46 47 48 49 50 47 FILE* oggFile; //!< general file-handler, to open the sound-file 48 OggVorbis_File oggStream; //!< The stream this Ogg-player is playing back 49 vorbis_info* vorbisInfo; //!< The information held in the opened ogg-file 50 vorbis_comment* vorbisComment; //!< Comments about the ogg-file 51 51 52 53 54 55 56 52 ALuint buffers[2]; //!< buffers that handle sequentially buffering of the audio 53 ALuint source; //!< The source we play back on 54 ALenum format; //!< The format we play back 55 bool trackLoaded; //!< If a Track has been loaded. 56 }; 57 57 58 58
Note: See TracChangeset
for help on using the changeset viewer.