Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7303 in orxonox.OLD for trunk


Ignore:
Timestamp:
Apr 16, 2006, 8:10:46 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: jump to Function in Music (should work)

Location:
trunk/src/lib/sound
Files:
2 edited

Legend:

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

    r7301 r7303  
    5151{
    5252  this->release();
     53}
     54
     55/**
     56 * @brief jump to Second timeCode in the MusicFile
     57 * @param timeCode where to jump to.
     58 */
     59void OggPlayer::jumpTo(float timeCode)
     60{
     61  if (this->state & FileOpened)
     62    ov_time_seek(&this->oggStream, timeCode);
    5363}
    5464
  • trunk/src/lib/sound/ogg_player.h

    r7301 r7303  
    3636  bool update();
    3737
     38  void jumpTo(float timeCode);
     39
    3840  void printState();
    3941
Note: See TracChangeset for help on using the changeset viewer.