Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MMControl won't record (even in 'Record' mode)
Message
De
17/08/1999 13:32:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
MMControl won't record (even in 'Record' mode)
Divers
Thread ID:
00254572
Message ID:
00254572
Vues:
78
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
Répondre
Fil
Voir

Click here to load this message in the networking platform