API reference
API reference
Select your platform
No SDKs available
No versions available

AudioDecoderPcm Class

An audio decoder for raw PCM audio data

Properties

Once setup this should display the number of channels expected to be decoded
Once setup this should display the number of samples per second expected

Fields

PCM can be decoded in any order prior to merging back in

Member Functions

Initial setup of the decoder
Parameters
channels
Total channels of audio data
sampleRate
The rate of audio data received
Gets pcm sample count from byte content length (1 sample = 2 bytes)
Parameters
contentLength
The provided number of bytes
A method for returning decoded bytes into audio data
Parameters
chunkData
A chunk of bytes to be decoded into audio data
chunkStart
The array start index into account when decoding
chunkLength
The total number of bytes to be used within chunkData
Returns
Returns an array of audio data from 0-1

Static Member Functions

Gets pcm sample count from byte content length (1 sample = 2 bytes)
Parameters
contentLength
The provided number of bytes
Gets pcm sample count from byte content length
Parameters
contentLength
The provided number of bytes
static float [] DecodePCM16
( byte [] rawData )
static float DecodeSamplePCM16
( byte [] rawData,
int index )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon