Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6871 in orxonox.OLD for trunk/src/lib/sound


Ignore:
Timestamp:
Jan 30, 2006, 9:39:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: small fixes (cleanup)

File:
1 edited

Legend:

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

    r6842 r6871  
    2020
    2121
    22 #define BUFFER_SIZE (4096 * 4)
     22#define BUFFER_SIZE (8096 * 4)
    2323
    2424
    2525// the definition of a Ogg-Player
    2626class OggPlayer : public BaseObject
    27   {
    28   public:
    29     OggPlayer(const char* fileName = NULL);
     27{
     28public:
     29  OggPlayer(const char* fileName = NULL);
    3030
    31     bool open(const char* fileName);
    32     void release();
    33     void debug();
    34     bool playback();
    35     bool playing();
    36     bool update();
     31  bool open(const char* fileName);
     32  void release();
     33  void debug();
     34  bool playback();
     35  bool playing();
     36  bool update();
    3737
    38   protected:
     38protected:
    3939
    40     bool stream(ALuint buffer);
    41     void empty();
    42     void check();
    43     const char* errorString(int code);
     40  bool stream(ALuint buffer);
     41  void empty();
     42  void check();
     43  const char* errorString(int code);
    4444
    45   private:
     45private:
    4646
    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
     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
    5151
    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   };
     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};
    5757
    5858
Note: See TracChangeset for help on using the changeset viewer.