Click or drag to resize
Accord.NET (logo)

IAudioDecoderDecode Method (Int32, Int32)

Decode a number of frames.

Namespace:  Accord.Audio.Formats
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
Signal Decode(
	int index,
	int frames
)
Request Example View Source

Parameters

index
Type: SystemInt32
Audio frame index to start decoding.
frames
Type: SystemInt32
The number of frames to decode.

Return Value

Type: Signal
Returns the decoded signal.
Remarks
Implementations of this method may throw NullReferenceException exception in the case if no audio stream was opened previously, ArgumentOutOfRangeException in the case if stream does not contain frame with specified index or ArgumentException exception to report about incorrectly formatted audio.
See Also