#include <video_decoder.h>
Public Member Functions | |
| SeekableAudioTrack (Audio::Mixer::SoundType soundType) | |
| bool | isSeekable () const |
| bool | seek (const Audio::Timestamp &time) |
| Audio::Timestamp | getDuration () const |
Public Member Functions inherited from Video::VideoDecoder::AudioTrack | |
| AudioTrack (Audio::Mixer::SoundType soundType) | |
| TrackType | getTrackType () const |
| virtual bool | endOfTrack () const |
| void | start () |
| void | stop () |
| void | start (const Audio::Timestamp &limit) |
| byte | getVolume () const |
| void | setVolume (byte volume) |
| uint32 | getRate () const |
| void | setRate (uint32 rate) |
| void | setRate (Common::Rational rate) |
| int8 | getBalance () const |
| void | setBalance (int8 balance) |
| Audio::Mixer::SoundType | getSoundType () const |
| void | setSoundType (Audio::Mixer::SoundType soundType) |
| uint32 | getRunningTime () const |
| void | setMute (bool mute) |
Public Member Functions inherited from Video::VideoDecoder::Track | |
| virtual bool | isRewindable () const |
| virtual bool | rewind () |
| void | pause (bool shouldPause) |
| bool | isPaused () const |
Protected Member Functions | |
| Audio::AudioStream * | getAudioStream () const |
| virtual Audio::SeekableAudioStream * | getSeekableAudioStream () const =0 |
Protected Member Functions inherited from Video::VideoDecoder::AudioTrack | |
| void | pauseIntern (bool shouldPause) |
Additional Inherited Members | |
Public Types inherited from Video::VideoDecoder::Track | |
| enum | TrackType { kTrackTypeNone, kTrackTypeVideo, kTrackTypeAudio } |
An AudioTrack that implements isSeekable() and seek() using SeekableAudioStream.
|
inlinevirtual |
Return if the track is seekable.
Reimplemented from Video::VideoDecoder::Track.
|
virtual |
Seek to the given time.
| time | The time to seek to, from the beginning of the video. |
Reimplemented from Video::VideoDecoder::Track.
|
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.
|
protectedvirtual |
Get the AudioStream that is the representation of this AudioTrack
Implements Video::VideoDecoder::AudioTrack.
|
protectedpure virtual |
Get the SeekableAudioStream pointer to be used by this class for seek(), getDuration(), and getAudioStream()
Implemented in Video::VideoDecoder::StreamFileAudioTrack.