ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Video::VideoDecoder::SeekableAudioTrack Class Reference

An AudioTrack that implements isSeekable() and seek() using SeekableAudioStream. More...

#include <video_decoder.h>

Inheritance diagram for Video::VideoDecoder::SeekableAudioTrack:
Collaboration diagram for Video::VideoDecoder::SeekableAudioTrack:

List of all members.

Public Member Functions

 SeekableAudioTrack (Audio::Mixer::SoundType soundType)
virtual ~SeekableAudioTrack ()
bool isSeekable () const
 Return if the track is seekable.
bool seek (const Audio::Timestamp &time)
 Seek to the given time.
Audio::Timestamp getDuration () const
 Get the duration of the track (starting from this track's start time).

Protected Member Functions

Audio::AudioStreamgetAudioStream () const
 Get the AudioStream that is the representation of this AudioTrack.
virtual
Audio::SeekableAudioStream
getSeekableAudioStream () const =0
 Get the SeekableAudioStream pointer to be used by this class for seek(), getDuration(), and getAudioStream().

Detailed Description

An AudioTrack that implements isSeekable() and seek() using SeekableAudioStream.

Definition at line 774 of file video_decoder.h.


Constructor & Destructor Documentation

Video::VideoDecoder::SeekableAudioTrack::SeekableAudioTrack ( Audio::Mixer::SoundType  soundType  )  [inline]

Definition at line 776 of file video_decoder.h.

virtual Video::VideoDecoder::SeekableAudioTrack::~SeekableAudioTrack (  )  [inline, virtual]

Definition at line 777 of file video_decoder.h.


Member Function Documentation

Audio::AudioStream * Video::VideoDecoder::SeekableAudioTrack::getAudioStream (  )  const [protected, virtual]

Get the AudioStream that is the representation of this AudioTrack.

Implements Video::VideoDecoder::AudioTrack.

Definition at line 691 of file video_decoder.cpp.

Audio::Timestamp Video::VideoDecoder::SeekableAudioTrack::getDuration (  )  const [virtual]

Get the duration of the track (starting from this track's start time).

By default, this returns 0 for unknown.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 685 of file video_decoder.cpp.

virtual Audio::SeekableAudioStream* Video::VideoDecoder::SeekableAudioTrack::getSeekableAudioStream (  )  const [protected, pure virtual]

Get the SeekableAudioStream pointer to be used by this class for seek(), getDuration(), and getAudioStream().

Implemented in Video::VideoDecoder::StreamFileAudioTrack.

bool Video::VideoDecoder::SeekableAudioTrack::isSeekable (  )  const [inline, virtual]

Return if the track is seekable.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 779 of file video_decoder.h.

bool Video::VideoDecoder::SeekableAudioTrack::seek ( const Audio::Timestamp time  )  [virtual]

Seek to the given time.

Parameters:
time The time to seek to, from the beginning of the video.
Returns:
true on success, false otherwise.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 695 of file video_decoder.cpp.


The documentation for this class was generated from the following files:


Generated on Sat Mar 16 2019 05:07:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge