Gnash  0.8.10
Public Attributes
gnash::sound::SoundEnvelope Class Reference

A sound envelope. More...

#include <SoundEnvelope.h>

List of all members.

Public Attributes

boost::uint32_t m_mark44
 Byte offset this envelope applies to.
boost::uint16_t m_level0
 Volume for the left channel (0..32768)
boost::uint16_t m_level1
 Volume for the right channel (0..32768)

Detailed Description

A sound envelope.

Used to control volume for event sounds. It basically tells that from sample X the volume for left out is Y and for right out is Z. Several envelopes can be assigned to a sound to make a fade out or similar stuff. See http://www.m2osw.com/en/swf_alexref.html#swf_envelope


Member Data Documentation

Volume for the left channel (0..32768)

Volume for the right channel (0..32768)

Byte offset this envelope applies to.

The offset is always given as if the sample data was defined with a rate of 44100 bytes per seconds. For instance, the sample number 1 in a sound effect with a sample rate of 5.5K is given as position 8 in the envelope.


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