Click or drag to resize
Accord.NET (logo)

AudioCaptureDeviceStop Method

Stop audio source.

Namespace:  Accord.DirectSound
Assembly:  Accord.Audio.DirectSound (in Accord.Audio.DirectSound.dll) Version: 3.8.0
Syntax
public void Stop()
Request Example View Source

Implements

IAudioSourceStop
Remarks

Stops audio source aborting its thread.

Note Note
Since the method aborts background thread, its usage is highly not preferred and should be done only if there are no other options. The correct way of stopping camera is signaling it stop and then waiting for background thread's completion.

See Also