C# 클래스 NAudio.CoreAudioApi.AudioClient

Windows Vista CoreAudio AudioClient
상속: IDisposable
파일 보기 프로젝트 열기: jishi/Jishi.StreamToSonos 1 사용 예제들

공개 메소드들

메소드 설명
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