main logo
Subject: Re: Play sound without chr(7)/set bell to 'file'
Author: Charlie Coleman
Posted: 2006/10/31 11:54:17
 
View Entire Thread
New Search


At 11:22 AM 10/31/2006 -0500, Malcolm Greene wrote:
>Suggestions on a technique for playing a very brief sound effect ('a
>click') without using ??chr(7) and SET BELL TO 'file'? The sound effect
...

I've used this:

*-- Playsound - parameters file, module?, type (play flags)
*-- Pass: pnPlayType - 1 - Ascynch, 2 - Nodefault sound 0 -Synch
*-- 4 - Kill currently playing sound
*-- 8 - Continous
DECLARE INTEGER PlaySound IN WINMM.dll AS WinPlaySound STRING cWave,
INTEGER nModule, INTEGER nType

Sample call:

WinPlaySound("c:\blahblahb\msbites\doom.wav",0,1)

....
>1. On Windows NT, 2000, and XP the mciSendString("open...") command is
>extremely slow.
>http://www.codeguru.com/Cpp/G-M/multimedia/audio/article.php/c4715/
>
>2. sndPlaySound()
>http://www.news2news.com/vfp/?example=251




 
©2006 Charlie Coleman
<-- Prior Message New Search Next Message -->