Click or drag to resize
Accord.NET (logo)

IAudioSource Interface

Audio Source interface.

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
public interface IAudioSource : IDisposable
Request Example View Source

The IAudioSource type exposes the following members.

Properties
  NameDescription
Public propertyBytesReceived
Received bytes count.
Public propertyCanSeek
Gets a Boolean value indicating if the source allows repositioning.
Public propertyChannels
Gets the number of audio channels in the source.
Public propertyDesiredFrameSize
Amount of samples to be read on each frame.
Public propertyFramesReceived
Received frames count.
Public propertyIsRunning
State of the audio source.
Public propertySampleRate
Gets or sets the sample rate for the source.
Public propertySource
Audio source.
Public propertyUserData
User data.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodSeek
Seeks a frame.
Public methodSignalToStop
Signals audio source to stop its work.
Public methodStart
Start audio source.
Public methodStop
Stop audio source.
Public methodWaitForStop
Wait until audio source has stopped.
Top
Events
  NameDescription
Public eventAudioSourceError
Audio source error event.
Public eventNewFrame
New frame block event.
Top
Remarks
This interface is implemented by objects which can generate or capture sounds. Examples are sound card capture ports, microphones, wave file decoders and others.
See Also