C# Класс Accord.Audio.Formats.WaveDecoder

Wave audio file decoder.
Наследование: IAudioDecoder
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Close ( ) : void

Closes the underlying stream.

Decode ( ) : Signal

Decodes the Wave stream into a Signal object.

Decode ( int frames ) : Signal

Decodes the Wave stream into a Signal object.

Decode ( int index, int frames ) : Signal

Decodes the Wave stream into a Signal object.

Open ( SharpDX.Multimedia.SoundStream stream ) : int

Opens the specified stream.

Open ( Stream stream ) : int

Open specified stream.

Open ( string path ) : int

Open specified stream.

Seek ( int frameIndex ) : void

Navigates to a position in this Wave stream.

WaveDecoder ( ) : System

Constructs a new Wave decoder.

WaveDecoder ( Stream stream ) : System

Constructs a new Wave decoder.

WaveDecoder ( string path ) : System

Constructs a new Wave decoder.

Приватные методы

Метод Описание
read ( byte buffer, int count ) : int

Reads a maximum of count frames from the current stream, and writes the data to buffer, beginning at index.

read ( float buffer, int count ) : int

Reads a maximum of count samples from the current stream, and writes the data to buffer, beginning at index.

read ( int buffer, int count ) : int

Reads a maximum of count frames from the current stream, and writes the data to buffer, beginning at index.

read ( short buffer, int count ) : int

Reads a maximum of count frames from the current stream, and writes the data to buffer, beginning at index.

readAsFloat ( float buffer, int count ) : int

Описание методов

Close() публичный метод

Closes the underlying stream.
public Close ( ) : void
Результат void

Decode() публичный метод

Decodes the Wave stream into a Signal object.
public Decode ( ) : Signal
Результат Accord.Audio.Signal

Decode() публичный метод

Decodes the Wave stream into a Signal object.
public Decode ( int frames ) : Signal
frames int The number of frames to decode.
Результат Accord.Audio.Signal

Decode() публичный метод

Decodes the Wave stream into a Signal object.
public Decode ( int index, int frames ) : Signal
index int Audio frame index to start decoding.
frames int The number of frames to decode.
Результат Accord.Audio.Signal

Open() публичный метод

Opens the specified stream.
public Open ( SharpDX.Multimedia.SoundStream stream ) : int
stream SharpDX.Multimedia.SoundStream Stream to open.
Результат int

Open() публичный метод

Open specified stream.
public Open ( Stream stream ) : int
stream Stream Stream to open.
Результат int

Open() публичный метод

Open specified stream.
public Open ( string path ) : int
path string Path of file to open as stream.
Результат int

Seek() публичный метод

Navigates to a position in this Wave stream.
public Seek ( int frameIndex ) : void
frameIndex int The index of the sample to navigate to.
Результат void

WaveDecoder() публичный метод

Constructs a new Wave decoder.
public WaveDecoder ( ) : System
Результат System

WaveDecoder() публичный метод

Constructs a new Wave decoder.
public WaveDecoder ( Stream stream ) : System
stream Stream
Результат System

WaveDecoder() публичный метод

Constructs a new Wave decoder.
public WaveDecoder ( string path ) : System
path string
Результат System