xoreos
0.0.5
|
An abstract representation of an audio track. More...
#include <decoder.h>
Public Member Functions | |
AudioTrack () | |
virtual | ~AudioTrack () |
TrackType | getTrackType () const |
Get the type of track. More... | |
bool | endOfTrack () const |
Return if the track has finished. More... | |
void | start () |
Start playing this track. More... | |
void | stop () |
Stop playing this track. More... | |
float | getGain () const |
Get the gain for this track. More... | |
void | setGain (float gain) |
Set the gain for this track. More... | |
uint32 | getRunningTime () const |
Get the time the AudioStream behind this track has been running. More... | |
void | setMute (bool mute) |
Mute the track. More... | |
virtual bool | canBufferData () const =0 |
Can more audio data be buffered? More... | |
Public Member Functions inherited from Video::VideoDecoder::Track | |
Track () | |
virtual | ~Track () |
void | pause (bool shouldPause) |
Set the pause status of the track. More... | |
bool | isPaused () const |
Return if the track is paused. More... | |
virtual Common::Timestamp | getDuration () const |
Get the duration of the track. More... | |
Protected Member Functions | |
void | pauseIntern (bool shouldPause) |
Function called by pause() for subclasses to implement. More... | |
virtual Sound::AudioStream * | getAudioStream () const =0 |
Get the AudioStream that is the representation of this AudioTrack. More... | |
Private Attributes | |
Sound::ChannelHandle | _handle |
float | _gain |
bool | _muted |
Additional Inherited Members | |
Public Types inherited from Video::VideoDecoder::Track | |
enum | TrackType { kTrackTypeNone, kTrackTypeAudio, kTrackTypeVideo } |
The types of tracks this class can be. More... | |
Video::VideoDecoder::AudioTrack::AudioTrack | ( | ) |
Definition at line 469 of file decoder.cpp.
|
inlinevirtual |
|
pure virtual |
Can more audio data be buffered?
Implemented in Video::XboxMediaVideo::XMVAudioTrack51, and Video::XboxMediaVideo::XMVAudioTrack.
Referenced by Video::VideoDecoder::update().
|
virtual |
Return if the track has finished.
Implements Video::VideoDecoder::Track.
Definition at line 472 of file decoder.cpp.
References SoundMan.
|
protectedpure virtual |
Get the AudioStream that is the representation of this AudioTrack.
Implemented in Video::XboxMediaVideo::XMVAudioTrack51, and Video::XboxMediaVideo::XMVAudioTrack.
|
inline |
uint32 Video::VideoDecoder::AudioTrack::getRunningTime | ( | ) | const |
Get the time the AudioStream behind this track has been running.
Definition at line 506 of file decoder.cpp.
References SoundMan.
|
inlinevirtual |
Get the type of track.
This must not return kTrackTypeNone.
Implements Video::VideoDecoder::Track.
Definition at line 307 of file decoder.h.
References Video::VideoDecoder::Track::kTrackTypeAudio.
|
protectedvirtual |
Function called by pause() for subclasses to implement.
Reimplemented from Video::VideoDecoder::Track.
Definition at line 523 of file decoder.cpp.
References SoundMan.
void Video::VideoDecoder::AudioTrack::setGain | ( | float | gain | ) |
void Video::VideoDecoder::AudioTrack::setMute | ( | bool | mute | ) |
void Video::VideoDecoder::AudioTrack::start | ( | ) |
Start playing this track.
Definition at line 483 of file decoder.cpp.
References Video::VideoDecoder::isPaused(), Sound::kSoundTypeVideo, and SoundMan.
void Video::VideoDecoder::AudioTrack::stop | ( | ) |
|
private |
|
private |