new RawAudioFormat(template)
A description of the format of raw PCM audio, such as that used by
Guacamole.RawAudioPlayer and Guacamole.RawAudioRecorder. This object
describes the number of bytes per sample, the number of channels, and the
overall sample rate.
Parameters:
Name | Type | Description |
---|---|---|
template |
Guacamole.RawAudioFormat | Object | The object whose properties should be copied into the corresponding properties of the new Guacamole.RawAudioFormat. |
- Source:
Members
bytesPerSample :Number
The number of bytes in each sample of audio data. This value is
independent of the number of channels.
Type:
- Number
- Source:
channels :Number
The number of audio channels (ie: 1 for mono, 2 for stereo).
Type:
- Number
- Source:
rate :Number
The number of samples per second, per channel.
Type:
- Number
- Source:
Methods
(static) parse(mimetype) → {Guacamole.RawAudioFormat}
Parses the given mimetype, returning a new Guacamole.RawAudioFormat
which describes the type of raw audio data represented by that mimetype. If
the mimetype is not a supported raw audio data mimetype, null is returned.
Parameters:
Name | Type | Description |
---|---|---|
mimetype |
String | The audio mimetype to parse. |
- Source:
Returns:
A new Guacamole.RawAudioFormat which describes the type of raw
audio data represented by the given mimetype, or null if the given
mimetype is not supported.