Changes

Jump to: navigation, search

User:David.humphrey/Audio Data API 2

275 bytes added, 02:11, 22 May 2010
nsIDOMNotifyAudioMetadataEvent
readonly attribute unsigned long mozChannels;
readonly attribute unsigned long mozRate;
readonly attribute unsigned long mozFrameBufferLength;
};
</pre>
The '''mozChannels''' attribute contains a the number of channels in this audio resource (e.g., 2). The '''mozRate''' attribute contains the number of samples per second that will be played, for example 44100. The '''mozFrameBufferLength''' attribute contains the number of samples that will be returned in each '''AudioWritten''' event. This number is a total for all channels (e.g., 2 channels * 2048 samples = 4096 total).
===== nsIDOMNotifyAudioWrittenEvent =====
Confirm
656
edits

Navigation menu