SoundRecorder Class

SFML.Net

SoundRecorder Class
Base class intended for capturing sound data
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.AudioSoundRecorder
      SFML.AudioSoundBufferRecorder

Namespace: SFML.Audio
Assembly: sfmlnet-audio-2 (in sfmlnet-audio-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public abstract class SoundRecorder : ObjectBase
Public MustInherit Class SoundRecorder
	Inherits ObjectBase
public ref class SoundRecorder abstract : public ObjectBase
[<AbstractClassAttribute>]
type SoundRecorder =  
    class
        inherit ObjectBase
    end

The SoundRecorder type exposes the following members.

Constructors
  NameDescription
Public methodSoundRecorder
Default constructor
Top
Methods
  NameDescription
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetDevice
Get the name of the current audio capture device
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnProcessSamples
Process a new chunk of recorded samples. This virtual function is called every time a new chunk of recorded data is available. The derived class can then do whatever it wants with it (storing it, playing it, sending it over the network, etc.).
Protected methodOnStart
Start capturing audio data. This virtual function may be overriden by a derived class if something has to be done every time a new capture starts. If not, this function can be ignored; the default implementation does nothing.
Protected methodOnStop
Stop capturing audio data. This virtual function may be overriden by a derived class if something has to be done every time the capture ends. If not, this function can be ignored; the default implementation does nothing.
Public methodSetDevice
Set the audio capture device
Protected methodSetProcessingInterval
The processing interval controls the period between calls to the onProcessSamples function. You may want to use a small interval if you want to process the recorded data in real time, for example. Note: this is only a hint, the actual period may vary. So don't rely on this parameter to implement precise timing. The default processing interval is 100 ms.
Public methodStart
Start the capture using the default sample rate (44100 Hz). Please note that only one capture can happen at the same time.
Public methodStart(UInt32)
Start the capture. The sampleRate parameter defines the number of audio samples captured per second. The higher, the better the quality (for example, 44100 samples/sec is CD quality). This function uses its own thread so that it doesn't block the rest of the program while the capture runs. Please note that only one capture can happen at the same time.
Public methodStop
Stop the capture
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyStatic memberAvailableDevices
Get the list of the names of all available audio capture devices
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyStatic memberDefaultDevice
Get the name of the default audio capture device
Public propertyStatic memberIsAvailable
Check if the system supports audio capture. This function should always be called before using the audio capture features. If it returns false, then any attempt to use the SoundRecorder or one of its derived classes will fail.
Public propertySampleRate
Sample rate of the sound recorder. The sample rate defines the number of audio samples captured per second. The higher, the better the quality (for example, 44100 samples/sec is CD quality).
Top
See Also