C# Класс NAudio.CoreAudioApi.AudioClient

Windows Vista CoreAudio AudioClient
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Dispose

Initialize ( AudioClientShareMode shareMode, AudioClientStreamFlags streamFlags, long bufferDuration, long periodicity, WaveFormat waveFormat, System.Guid audioSessionGuid ) : void

Initialize the Audio Client

IsFormatSupported ( AudioClientShareMode shareMode, WaveFormat desiredFormat ) : bool

Determines whether if the specified output format is supported

IsFormatSupported ( AudioClientShareMode shareMode, WaveFormat desiredFormat, NAudio.Wave.WaveFormatExtensible &closestMatchFormat ) : bool

Determines if the specified output format is supported in shared mode

Reset ( ) : void

Resets the audio stream Reset is a control method that the client calls to reset a stopped audio stream. Resetting the stream flushes all pending data and resets the audio clock stream position to 0. This method fails if it is called on a stream that is not stopped

SetEventHandle ( IntPtr eventWaitHandle ) : void

Set the Event Handle for buffer synchro.

Start ( ) : void

Starts the audio stream

Stop ( ) : void

Stops the audio stream.

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

Метод Описание
AudioClient ( IAudioClient audioClientInterface ) : System

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

Dispose() публичный Метод

Dispose
public Dispose ( ) : void
Результат void

Initialize() публичный Метод

Initialize the Audio Client
public Initialize ( AudioClientShareMode shareMode, AudioClientStreamFlags streamFlags, long bufferDuration, long periodicity, WaveFormat waveFormat, System.Guid audioSessionGuid ) : void
shareMode AudioClientShareMode Share Mode
streamFlags AudioClientStreamFlags Stream Flags
bufferDuration long Buffer Duration
periodicity long Periodicity
waveFormat NAudio.Wave.WaveFormat Wave Format
audioSessionGuid System.Guid Audio Session GUID (can be null)
Результат void

IsFormatSupported() публичный Метод

Determines whether if the specified output format is supported
public IsFormatSupported ( AudioClientShareMode shareMode, WaveFormat desiredFormat ) : bool
shareMode AudioClientShareMode The share mode.
desiredFormat NAudio.Wave.WaveFormat The desired format.
Результат bool

IsFormatSupported() публичный Метод

Determines if the specified output format is supported in shared mode
public IsFormatSupported ( AudioClientShareMode shareMode, WaveFormat desiredFormat, NAudio.Wave.WaveFormatExtensible &closestMatchFormat ) : bool
shareMode AudioClientShareMode Share Mode
desiredFormat NAudio.Wave.WaveFormat Desired Format
closestMatchFormat NAudio.Wave.WaveFormatExtensible Output The closest match format.
Результат bool

Reset() публичный Метод

Resets the audio stream Reset is a control method that the client calls to reset a stopped audio stream. Resetting the stream flushes all pending data and resets the audio clock stream position to 0. This method fails if it is called on a stream that is not stopped
public Reset ( ) : void
Результат void

SetEventHandle() публичный Метод

Set the Event Handle for buffer synchro.
public SetEventHandle ( IntPtr eventWaitHandle ) : void
eventWaitHandle System.IntPtr The Wait Handle to setup
Результат void

Start() публичный Метод

Starts the audio stream
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the audio stream.
public Stop ( ) : void
Результат void