Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recording audio (what you can ear, not what you speak).

Status
Not open for further replies.

AtcBrambo

Programmer
May 7, 2010
4
IT
I think every one, at least once, had the problem to record sound.

I did it this say ....

Procedure Start_Recording;
begin
bIsRecording:=False;
try
Log.AddLine('Opening multimedia ....');
mciSendString( 'OPEN NEW TYPE WAVEAUDIO ALIAS mysound', nil, 0, Main_Form.Handle);
mciSendString( 'SET mysound TIME FORMAT MS ' + // set time
'BITSPERSAMPLE 8 ' + // 8 Bit
'CHANNELS 1 ' + // MONO
'SAMPLESPERSEC 8000 ' + // 8 KHz
'BYTESPERSEC 8000', // 8000 Bytes/s
nil, 0, Main_Form.Handle);
mciSendString( 'RECORD mysound', nil, 0, Main_Form.Handle);
bIsRecording:=True;
Log.AddLine('Start recording ....');
except
Log.AddLine('Can not start recording ....', 1);
MessageDlgPos('Can not open Recording Device.'+#13#13+'Your voice will not be recorded ....',mtError,[mbOk],0,10,10);
end;
end;

-------------------------------------

Does anyone know how to record everything the user can ear ?

After days of searches, I didn't find the MCISendString option to make it working.

Thnaks for any help and best regards.

Giovanni.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top