MobileForms Toolkit Documentation

AudioDecoder.DecodeFrame Method 

Decodes a sequence of bytes from the current decoder and advances the position within the underlying stream by the number of bytes read.

public virtual int DecodeFrame(
byte[] buffer,
int offset,
int count
);

Parameters

buffer
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes decoded from the current decoder.
offset
The zero-based byte offset in buffer at which to begin storing the data decoded from the current decoder.
count
The maximum number of bytes to be decoded from the current decoder.

Return Value

The total number of bytes decoded into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the underlying stream has been reached.

See Also

AudioDecoder Class | Resco.Audio Namespace