🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5343

Re: Playing Beep() through speakers

#5343
From: salamander1965
Date: Sat, 03 Sep 2005 00:17
25 lines
2564 bytes
JD wrote:
> What's wrong with using wav files? It seems to me that actual
> spoken words would be more telling than tones of variouse
> frequencies and durations. Look under Accessories for a sound
> recorder and as long as you you have a headset with a
> microphone, that's all you need.

Even if I were to use WAV files (and another part of the thread has 
given me some pointers on how to record some) I would still need to 
use tones for several reasons.  First, the app is being written for a 
friend in my department that has been using an old DOS program for 
years to do this.  Unfortunately, the program won't work with Win2K. 
I would want the transition to this program to be as easy as possible 
for him, and the old program uses tones through the system speaker. 
Second, he has over the years gotten quite fast at typing in the codes 
so the sound cues need to be short -- much shorter than spoken words. 
  Finally, he types in a numeric code as he identifies each item under 
the scope, and there are over 100 possible codes he routinely uses.

> If the wav's aren't too big, I'd add them to a resource file
> so that thay're part of the exe (no disk access) and load and
> play them as needed. For example:

And thanks for the example code.  If I end up using WAV's, I'll take 
your advice about the resource files.
Technical Details
Message-ID: <4318eb2f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com> <43173554@newsgroups.borland.com> <43179cf9@newsgroups.borland.com> <431844a1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1ac045379f8b141d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 02 Sep 2005 20:17:50 -0400
From: salamander1965 <salamander1@verizon.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Playing Beep() through speakers
References: <43164b44$1@newsgroups.borland.com> <b20dh1ptsfm0gjr2bog6lhoc89fhf3fjmp@4ax.com> <4316d64f@newsgroups.borland.com> <43173554@newsgroups.borland.com> <43179cf9@newsgroups.borland.com> <431844a1$1@newsgroups.borland.com>
In-Reply-To: <431844a1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 70.20.113.78
Message-ID: <4318eb2f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125706543 70.20.113.78 (2 Sep 2005 17:15:43 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail