MOX Software

Business Solutions

Audio Recorder ActiveX control developed by MOX Software that makes it easy adding sound recording capabilities to applications written with the most widely-used development environments that accept ActiveX controls such as Visual Studio and Visual Studio.NET

 


Download

VB Example:

Recorder1.FileName=”C:\mySound.wav”

Recorder1.BitsPerSample = 16

Recorder1.Channels = Channel.Sterio ‘ you can write also Recorder1.Channels =2

Recorder1.SamplesPerSec = 22050

Recorder1.Record


Recorder Control properties


FileName : determine the recorded sound file name ,it takes string value

Recorder1.FileName=”C:\Test.wav”

BitsPerSample : determine the number of bits per one sample , it takes integer value (16 or 8)

Recorder1.BitsPerSample=16

Channels : determine the Channel of Sound file ,it takes integer value (1 or 2)

Recorder1.Channels=Channel.Sterio

or

Recorder1.Channels=2

SamplesPerSec : determine the number of recorded samples per one second ,it takes Long value (11025 , 22050 , 32075 or 44100)

Recorder1.SamplePerSec=22050

 


Recorder Control methods


Record : start recording

Recorder1.Record

Pause : pause recording

Recorder1.pause

ResumeRecording : resume recording , use it after pause only

Recorder1.ResumeRecording

StopRecording : stop recording

Recorder1.StopRecording


Recorder Control events


OnError : this is the only event in this control , fires when error occurred

it return integer value (ErrorCode)

 

Values

Description

103

Bad setting (BitsPerSample , Channels or SamplesPerSec)

105

Error on stop

106

Bad file name

107

unable to close device

104

Error on pause

101

unable to open device

102

Error On Record

VB Example:

Private Sub Recorder1_OnError(ByVal ErrorCode As Integer)

if  ErrorCode=101 then

        MsgBox “Unable to Open Device”
end if


End Sub