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 =====