Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MMControl won't record (even in 'Record' mode)
Message
From
17/08/1999 13:32:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MMControl won't record (even in 'Record' mode)
Miscellaneous
Thread ID:
00254572
Message ID:
00254572
Views:
77
I'm trying to record a phone conversation using the Multimedia control.

I'm setting the MMControl1.COMMAND to "Record" but the file does not get recorded. If fact, I'm looking for the file using Explorer and the file doesn't even appear until I end the recording session. And then it's only 1k in size...

Any ideas?

Here's the code to start the recording session ( graciously provided by Tom Harker, another UT member )
*
* get sound file name
THISFORM.WaveFile = "_" + NextNumber( "NxtWaveFile", 7 )
*
* start recording
THISFORM.MMControl1.DeviceType = "WaveAudio"
THISFORM.MMControl1.NOTIFY     = .T.
THISFORM.MMControl1.FileName   = ".\audio\" + THISFORM.WaveFile + ".WAV"
THISFORM.MMControl1.COMMAND    = "Open"
IF THISFORM.MMControl1.ERRORMESSAGE <>""
    WAIT WINDOW "PROBLEM OPENING THE SOUND FILE !!" + CHR(13) + THISFORM.MMControl1.ERRORMESSAGE
ENDIF
IF THISFORM.MMControl1.CanRecord = .F.
    WAIT WINDOW "SOUND RECORDING WAS NOT ENABLED !" + CHR(13) + THISFORM.MMControl1.ERRORMESSAGE
ELSE THISFORM.MMControl1.COMMAND = "Record"
    IF THISFORM.MMControl1.ERRORMESSAGE <>""
        WAIT WINDOW "PROBLEM RECORDING THE SOUND FILE !!" + CHR(13) + THISFORM.MMControl1.ERRORMESSAGE
    ENDIF
ENDIF
As you can see, there are messages displayed if any of the steps doesn't succeed and I'm not seing any of these messages...

TIA
Reply
Map
View

Click here to load this message in the networking platform