C# Class NAudio.CoreAudioApi.AudioClient

Windows Vista CoreAudio AudioClient
Inheritance: IDisposable
Afficher le fichier Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
AudioClient ( IAudioClient audioClientInterface ) : System

Method Details

Dispose() public méthode

Dispose
public Dispose ( ) : void
Résultat void

Initialize() public méthode

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)
Résultat void

IsFormatSupported() public méthode

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.
Résultat bool

IsFormatSupported() public méthode

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.
Résultat bool

Reset() public méthode

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
Résultat void

SetEventHandle() public méthode

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

Start() public méthode

Starts the audio stream
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the audio stream.
public Stop ( ) : void
Résultat void