Click or drag to resize
Recorder Class
Recorder is a component for sound recording in pulse code modulation (PCM) wave file format.
Inheritance Hierarchy

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public class Recorder : Component

The Recorder type exposes the following members.

Constructors
  NameDescription
Public methodRecorder
Initializes a new instance of the Recorder class
Top
Methods
  NameDescription
Public methodClose
Closes opened recording device.
Public methodConfigure
Configures device before recording.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetErrorString
Returns string that describes the specified error code.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodOpen
Opens device for recording.
Public methodRecord
Records sound.
Public methodSave
Saves recorded sound into file.
Public methodStop
Stops recording.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Properties
  NameDescription
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyIsRecording
Returns true if recording or false otherwise.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyStatus
Gets current device status.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Top
Examples
This example shows how simple use Recorder.
rec.Open();
Recorder.Channel rc = Recorder.Channel.Stereo;
Recorder.BitsPerSample rbps = Recorder.BitsPerSample.Bps16;
Recorder.SamplesPerSec rsps = Recorder.SamplesPerSec.Sps8000;
rec.Configure(rc, rbps, rsps);
rec.Record();
See Also