Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multimedia Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00515006
Message ID:
00516752
Vues:
12
Yes I do!
In the Load of a Form you do this:
with thisform
   .MMControl1.Notify = .f.
   .MMControl1.Wait = .t.
   .MMControl1.Shareable = .f.
   .MMControl1.DeviceType = "WaveAudio"
   .MMControl1.FileName = "c:\suncsc\forms\test1.WAV"

   * Open the MCI WaveAudio device.
   .MMControl1.Command = "Open"
endwith
To save the recording:
with thisform
   .MMControl1.Notify = .f.
   .MMControl1.Wait = .f.

   * Saven the MCI WaveAudio device file.
   .MMControl1.Command = "save"
endwith
IN the unload you do:
with thisform
   .MMControl1.Notify = .f.
   .MMControl1.Wait = .f.

   * Close the MCI WaveAudio device.
   .MMControl1.Command = "close"
endwith


>Does anyone have example code for recording/playback of .wav files via the Microsoft Multimedia Control V6?
>
>I'd like to automate the process entirely, i.e. there would be no need for the user to even see the recording/playback console.
>
>Regards
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform