30 INLINE
int MovieAudioCursor::
43 return _audio_channels;
97 return _can_seek_fast;
119 return _last_seek + ((_samples_read * 1.0) / _audio_rate);
bool aborted() const
If aborted is true, it means that the "ready" samples are not being replenished.
void read_samples(int n, Datagram *dg)
Read audio samples from the stream into a Datagram.
double tell() const
Returns the current offset within the file.
A MovieAudio is actually any source that provides a sequence of audio samples.
void skip_samples(int n)
Skip audio samples from the stream.
int audio_channels() const
Returns the number of audio channels (ie, two for stereo, one for mono).
A MovieAudio is actually any source that provides a sequence of audio samples.
double length() const
Returns the length of the movie.
bool can_seek() const
Returns true if the movie can seek.
bool can_seek_fast() const
Returns true if seek operations are constant time.