Gnash  0.8.10
Public Member Functions
gnash::sound::StreamingSound Class Reference

Instance of a defined sound (StreamingSoundData) More...

#include <StreamingSound.h>

Inheritance diagram for gnash::sound::StreamingSound:
gnash::sound::LiveSound gnash::sound::InputStream

List of all members.

Public Member Functions

 StreamingSound (StreamingSoundData &def, media::MediaHandler &mh, sound_handler::StreamBlockId blockId)
 Create an embedded sound instance.
virtual bool eof () const
 True if there is no more data ever.
 ~StreamingSound ()
 Unregister self from the associated StreamingSoundData.
size_t currentBlock () const

Detailed Description

Instance of a defined sound (StreamingSoundData)

This class contains a pointer to the StreamingSoundData used for playing and a SimpleBuffer to use when decoding is needed.

Constructor & Destructor Documentation

gnash::sound::StreamingSound::StreamingSound ( StreamingSoundData def,
media::MediaHandler mh,
sound_handler::StreamBlockId  blockId 

Create an embedded sound instance.

defThe sound data for this sound
mhThe MediaHandler to use for on-demand decoding
blockIdIdentifier of the encoded block to start decoding from.
See also:
gnash::sound::StreamingSound::~StreamingSound ( )

Unregister self from the associated StreamingSoundData.

WARNING: must be thread-safe!

References gnash::sound::StreamingSoundData::eraseActiveSound().

Member Function Documentation

size_t gnash::sound::StreamingSound::currentBlock ( ) const [inline]
bool gnash::sound::StreamingSound::eof ( ) const [virtual]

True if there is no more data ever.

The InputStream will be disconnected when this is true.

Implements gnash::sound::LiveSound.

References gnash::sound::LiveSound::decodedSamplesAhead().

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