xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Video::XboxMediaVideo::XMVAudioTrack Class Reference

An XMV audio track. More...

Inheritance diagram for Video::XboxMediaVideo::XMVAudioTrack:
Inheritance graph
[legend]
Collaboration diagram for Video::XboxMediaVideo::XMVAudioTrack:
Collaboration graph
[legend]

Public Member Functions

 XMVAudioTrack (const AudioInfo &info)
 
void queueAudio (Common::SeekableReadStream *stream)
 Queue audio stream data belonging to this track. More...
 
void finish ()
 Mark the stream as finished. More...
 
bool canBufferData () const
 Can more audio data be buffered? More...
 
Sound::AudioStreamgetAudioStream () const
 Get the AudioStream that is the representation of this AudioTrack. More...
 
- Public Member Functions inherited from Video::VideoDecoder::AudioTrack
 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...
 
- 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...
 

Private Member Functions

Sound::PacketizedAudioStreamcreateStream () const
 

Private Attributes

AudioInfo _info
 
Common::ScopedPtr< Sound::PacketizedAudioStream_audioStream
 

Additional Inherited Members

- Public Types inherited from Video::VideoDecoder::Track
enum  TrackType { kTrackTypeNone, kTrackTypeAudio, kTrackTypeVideo }
 The types of tracks this class can be. More...
 
- Protected Member Functions inherited from Video::VideoDecoder::AudioTrack
void pauseIntern (bool shouldPause)
 Function called by pause() for subclasses to implement. More...
 

Detailed Description

An XMV audio track.

Definition at line 93 of file xmv.h.

Constructor & Destructor Documentation

◆ XMVAudioTrack()

Video::XboxMediaVideo::XMVAudioTrack::XMVAudioTrack ( const AudioInfo info)

Definition at line 376 of file xmv.cpp.

References _audioStream, createStream(), and Common::ScopedPtrBase< T, Deallocator >::reset().

Here is the call graph for this function:

Member Function Documentation

◆ canBufferData()

bool Video::XboxMediaVideo::XMVAudioTrack::canBufferData ( ) const
virtual

Can more audio data be buffered?

Implements Video::VideoDecoder::AudioTrack.

Definition at line 380 of file xmv.cpp.

◆ createStream()

Sound::PacketizedAudioStream * Video::XboxMediaVideo::XMVAudioTrack::createStream ( ) const
private

Definition at line 396 of file xmv.cpp.

References Sound::FLAG_16BITS, Sound::FLAG_LITTLE_ENDIAN, Sound::kADPCMMSIma, Sound::kWaveMSIMAADPCM2, Sound::kWavePCM, Sound::makePacketizedADPCMStream(), and Sound::makePacketizedPCMStream().

Referenced by XMVAudioTrack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finish()

void Video::XboxMediaVideo::XMVAudioTrack::finish ( )

Mark the stream as finished.

Definition at line 388 of file xmv.cpp.

◆ getAudioStream()

Sound::AudioStream * Video::XboxMediaVideo::XMVAudioTrack::getAudioStream ( ) const
virtual

Get the AudioStream that is the representation of this AudioTrack.

Implements Video::VideoDecoder::AudioTrack.

Definition at line 392 of file xmv.cpp.

◆ queueAudio()

void Video::XboxMediaVideo::XMVAudioTrack::queueAudio ( Common::SeekableReadStream stream)

Queue audio stream data belonging to this track.

Definition at line 384 of file xmv.cpp.

Referenced by Video::XboxMediaVideo::queueNewAudio().

Here is the caller graph for this function:

Member Data Documentation

◆ _audioStream

Common::ScopedPtr<Sound::PacketizedAudioStream> Video::XboxMediaVideo::XMVAudioTrack::_audioStream
private

Definition at line 109 of file xmv.h.

Referenced by XMVAudioTrack().

◆ _info

AudioInfo Video::XboxMediaVideo::XMVAudioTrack::_info
private

Definition at line 108 of file xmv.h.


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