Method | Description | |
---|---|---|
Dispose ( ) : void |
Dispose
|
|
Initialize ( AudioClientShareMode shareMode, AudioClientStreamFlags streamFlags, long bufferDuration, long periodicity, |
Initialize the Audio Client
|
|
IsFormatSupported ( AudioClientShareMode shareMode, |
Determines whether if the specified output format is supported
|
|
IsFormatSupported ( AudioClientShareMode shareMode, |
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 ( |
Set the Event Handle for buffer synchro.
|
|
Start ( ) : void |
Starts the audio stream
|
|
Stop ( ) : void |
Stops the audio stream.
|
Method | Description | |
---|---|---|
AudioClient ( IAudioClient audioClientInterface ) : System |
public Initialize ( AudioClientShareMode shareMode, AudioClientStreamFlags streamFlags, long bufferDuration, long periodicity, |
||
shareMode | AudioClientShareMode | Share Mode |
streamFlags | AudioClientStreamFlags | Stream Flags |
bufferDuration | long | Buffer Duration |
periodicity | long | Periodicity |
waveFormat | Wave Format | |
audioSessionGuid | System.Guid | Audio Session GUID (can be null) |
return | void |
public IsFormatSupported ( AudioClientShareMode shareMode, |
||
shareMode | AudioClientShareMode | The share mode. |
desiredFormat | The desired format. | |
return | bool |
public IsFormatSupported ( AudioClientShareMode shareMode, |
||
shareMode | AudioClientShareMode | Share Mode |
desiredFormat | Desired Format | |
closestMatchFormat | NAudio.Wave.WaveFormatExtensible | Output The closest match format. |
return | bool |
public SetEventHandle ( |
||
eventWaitHandle | The Wait Handle to setup | |
return | void |