Public Member Functions |
| Mkit_sound_handler (media::MediaHandler *m) |
| ~Mkit_sound_handler () |
virtual int | create_sound (std::auto_ptr< SimpleBuffer > data, std::auto_ptr< media::SoundInfo > sinfo) |
virtual StreamBlockId | addSoundBlock (unsigned char *data, unsigned int data_bytes, unsigned int sample_count, int streamId) |
virtual void | stop_sound (int sound_handle) |
virtual void | delete_sound (int sound_handle) |
| Discard the sound data for an embedded event sound.
|
virtual void | reset () |
| Discard all sound inputs (slots and aux streamers) and clear scheduling.
|
virtual void | stop_all_sounds () |
| Remove all scheduled request for playback of sound buffer slots.
|
virtual int | get_volume (int sound_handle) |
virtual void | set_volume (int sound_handle, int volume) |
| Sets the volume for a given event sound.
|
virtual media::SoundInfo * | get_sound_info (int soundHandle) |
virtual void | mute () |
| Call this to mute audio.
|
virtual void | unmute () |
| Call this to unmute audio.
|
virtual bool | is_muted () const |
| Returns whether or not sound is muted.
|
virtual void | pause () |
| gnash calls this to pause audio
|
virtual void | unpause () |
| gnash calls this to unpause audio
|
virtual unsigned int | get_duration (int sound_handle) |
virtual unsigned int | tell (int sound_handle) |
void | plugInputStream (std::auto_ptr< InputStream > in) |
| Plug an InputStream to the mixer.
|
void | fetchSamples (boost::int16_t *to, unsigned int nSamples) |
| Fetch mixed samples.
|
Public Member Functions inherited from gnash::sound::sound_handler |
virtual | ~sound_handler () |
virtual int | create_sound (std::auto_ptr< SimpleBuffer > data, const media::SoundInfo &sinfo) |
| Create a sound buffer slot, for on-demand playback.
|
virtual void | stopEventSound (int sound_handle) |
| Remove scheduled requests to play the specified sound buffer slot.
|
virtual void | stopAllEventSounds () |
| Stop all instances of all playing event sounds.
|
void | startSound (int id, int loops, const SoundEnvelopes *env, bool allowMultiple, unsigned int inPoint=0, unsigned int outPoint=std::numeric_limits< unsigned int >::max()) |
| Start playback of an event sound.
|
bool | isSoundPlaying (int id) const |
| Check if an event sound is playing.
|
virtual unsigned int | get_duration (int sound_handle) const |
| Gets the duration in milliseconds of an event sound.
|
virtual unsigned int | tell (int sound_handle) const |
| Gets the playhead position in milliseconds of an event sound.
|
virtual int | get_volume (int sound_handle) const |
| Gets the volume for a given sound buffer slot.
|
virtual int | createStreamingSound (const media::SoundInfo &sinfo) |
virtual void | stopStreamingSound (int handle) |
| Remove scheduled requests to play the specified sound buffer slot.
|
virtual StreamBlockId | addSoundBlock (std::auto_ptr< SimpleBuffer > data, size_t sampleCount, int seekSamples, int streamId) |
virtual media::SoundInfo * | get_sound_info (int handle) const |
| Returns a SoundInfo object for the sound with the given id.
|
void | playStream (int handle, StreamBlockId blockId) |
| Start playback of a streaming sound, if not playing already.
|
int | getStreamBlock (int handle) const |
| Get the identifier for the block playing in a specific stream.
|
int | getFinalVolume () const |
| Get the volume to apply to mixed output.
|
void | setFinalVolume (int v) |
| Set the volume to apply to mixed output.
|
bool | isPaused () const |
| return true if audio is paused
|
virtual InputStream * | attach_aux_streamer (aux_streamer_ptr ptr, void *udata) |
| Plug an external InputStream into the mixer.
|
virtual void | unplugInputStream (InputStream *id) |
| Unplug an external InputStream from the mixer.
|
size_t | numSoundsStarted () const |
| Special test-fuction. Reports how many times a sound has been started.
|
size_t | numSoundsStopped () const |
| Special test-fuction. Reports how many times a sound has been stopped.
|
void | setAudioDump (const std::string &wavefile) |
| Request to dump audio to the given filename.
|
bool | streamingSound () const |
| Check if a streaming sound is playing.
|
Mkit media kit based sound_handler.