Click or drag to resize
Accord.NET (logo)

IAudioDecoderOpen Method

Open specified stream.

Namespace:  Accord.Audio.Formats
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
int Open(
	Stream stream
)
Request Example View Source

Parameters

stream
Type: System.IOStream
Stream to open.

Return Value

Type: Int32
Returns number of frames found in the specified stream.
Remarks

Implementation of this method is supposed to read audio's header, checking for correct audio format and reading its attributes.

Implementations of this method may throw FormatException exception to report about unrecognized audio format, ArgumentException exception to report about incorrectly formatted audio or NotSupportedException exception to report if certain formats are not supported.

See Also