C# Class NAudio.CoreAudioApi.AudioClient

Windows Vista CoreAudio AudioClient
Inheritance: IDisposable
ファイルを表示 Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
AudioClient ( IAudioClient audioClientInterface ) : System

Method Details

Dispose() public method

Dispose
public Dispose ( ) : void
return void

Initialize() public method

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)
return void

IsFormatSupported() public method

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.
return bool

IsFormatSupported() public method

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.
return bool

Reset() public method

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
return void

SetEventHandle() public method

Set the Event Handle for buffer synchro.
public SetEventHandle ( IntPtr eventWaitHandle ) : void
eventWaitHandle System.IntPtr The Wait Handle to setup
return void

Start() public method

Starts the audio stream
public Start ( ) : void
return void

Stop() public method

Stops the audio stream.
public Stop ( ) : void
return void