: how to use sound recording and playing in pascal program : thanks : to play: [code] uses mmsystems;
begin SendMCICommand('MCIDEVICEID wDeviceID,MCI_WINDOW, DWORD dwFlags, (DWORD) (LPMCI_GENERIC_PARMS) lpWindow'); SendMCICommand('open overlay shareable'); SendMCICommand('play "[red]somesoundfile.wmv[/red]"'); SendMCICommand('close overlay'); end. [/code] just replace the red with the file path/name
for recording-i don't think pascal does that, you need recording software
Comments
: thanks
:
to play:
[code]
uses mmsystems;
begin
SendMCICommand('MCIDEVICEID wDeviceID,MCI_WINDOW, DWORD dwFlags, (DWORD) (LPMCI_GENERIC_PARMS) lpWindow');
SendMCICommand('open overlay shareable');
SendMCICommand('play "[red]somesoundfile.wmv[/red]"');
SendMCICommand('close overlay');
end.
[/code]
just replace the red with the file path/name
for recording-i don't think pascal does that, you need recording software