campfat
10-08-2001, 08:23 PM
How do I play a certain .wav file at for example 12:00?
playing wavescampfat 10-08-2001, 08:23 PM How do I play a certain .wav file at for example 12:00? orufet 10-08-2001, 08:25 PM You can use a Timer to moniter the current time, and if it's less than 12:01 and more that 11:59, use an API call to play the wave....let us know if you have a specific question of how to do that... "I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire Aspen2K 10-09-2001, 08:56 AM I Use the Multimedia control that comes with vb5 for playing waves. MMC1.filename = "c:\Alarm.wav" MMC1.DeviceType = "WaveAudio" MMC1.Command = "Open" MMC1.Command = "Sound" MMC1.Command = "Close" Hope this helps orufet 10-09-2001, 09:06 AM In a way, the API is better (although it's more code) because you don't have to distribute the multimedia ocx file with your program. Also, it helps non-API users get into the wonderful world of API. "I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire Volte 10-09-2001, 10:34 AM look into the sndPlaySound API. If at first, you don't succed, call it version 1.0. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum