Gnash  0.8.11dev
Public Attributes | List of all members
gnash::sound::SoundEnvelope Class Reference

A sound envelope. More...

#include <SoundEnvelope.h>

Public Attributes

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

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

§ m_level0

std::uint16_t gnash::sound::SoundEnvelope::m_level0

Volume for the left channel (0..32768)

§ m_level1

std::uint16_t gnash::sound::SoundEnvelope::m_level1

Volume for the right channel (0..32768)

§ m_mark44

std::uint32_t gnash::sound::SoundEnvelope::m_mark44

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: