main logo
Subject: Play sound without chr(7)/set bell to 'file'
Author: "Malcolm Greene"
Posted: 2006/10/31 11:22:43
 
View Entire Thread
New Search


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
is designed to reinforce a user action and can be optionally disabled by
the user. An asynch solution would work best.

Are mciSendString(), sndPlaySound() or MessageBeep() my only options?
Any tips on which of these api calls works best for a brief sound
effect.

Research:

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

Thanks,

Malcolm



 
©2006 Malcolm Greene
<-- Prior Message New Search Next Message -->