ScummVM API documentation
Video::VideoDecoder::StreamFileAudioTrack Class Reference

#include <video_decoder.h>

Inheritance diagram for Video::VideoDecoder::StreamFileAudioTrack:
Video::VideoDecoder::SeekableAudioTrack Video::VideoDecoder::AudioTrack Video::VideoDecoder::Track

Public Member Functions

 StreamFileAudioTrack (Audio::Mixer::SoundType soundType)
 
 StreamFileAudioTrack (Audio::SeekableAudioStream *stream, Audio::Mixer::SoundType soundType)
 
bool loadFromFile (const Common::Path &baseName)
 
- Public Member Functions inherited from Video::VideoDecoder::SeekableAudioTrack
 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::SeekableAudioStreamgetSeekableAudioStream () const
 
- Protected Member Functions inherited from Video::VideoDecoder::SeekableAudioTrack
Audio::AudioStreamgetAudioStream () const
 
- Protected Member Functions inherited from Video::VideoDecoder::AudioTrack
void pauseIntern (bool shouldPause)
 

Protected Attributes

Audio::SeekableAudioStream_stream
 

Additional Inherited Members

- Public Types inherited from Video::VideoDecoder::Track
enum  TrackType { kTrackTypeNone, kTrackTypeVideo, kTrackTypeAudio }
 

Detailed Description

A SeekableAudioTrack that constructs its SeekableAudioStream using SeekableAudioStream::openStreamFile()

Member Function Documentation

◆ loadFromFile()

bool Video::VideoDecoder::StreamFileAudioTrack::loadFromFile ( const Common::Path baseName)

Load the track from a file with the given base name.

Returns
true on success, false otherwise

◆ getSeekableAudioStream()

Audio::SeekableAudioStream* Video::VideoDecoder::StreamFileAudioTrack::getSeekableAudioStream ( ) const
inlineprotectedvirtual

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

Implements Video::VideoDecoder::SeekableAudioTrack.


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