Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 16, 2006, 10:12:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Play Stop Rewind and Pause work perfectly: you can test this in this revision

File:
1 edited

Legend:

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

    r7305 r7306  
    2020
    2121
    22 #define OGG_PLAYER_BUFFER_SIZE (8096 * 2)
     22#define OGG_PLAYER_BUFFER_SIZE (8096 * 4)
    2323
    2424
     
    3333   */
    3434  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.
    4343  } State;
    4444
     
    5656  void jumpTo(float timeCode);
    5757
     58  float length();
    5859  bool isPlaying();
    5960  bool getState() { return this->state; };
     
    6768  static int createAudioThread(void* oggPlayer);
    6869  bool playback();
     70  void suspend();
    6971  bool update();
    7072
Note: See TracChangeset for help on using the changeset viewer.