Beep for me please (AREV Specific)
At 05 SEP 2001 07:57:10AM C Mansutti wrote:
Hi All,
We've just noticed that if have a built in sound card but don't use it in Win'98 (therefore no soundcard speakers connected) when you send a "beep" the on board speaker provides a pathetic barely audible "click".
If we drop to a DOS shell and send "Echo ^G" you get the click
If we shutdown to DOS and send "Echo ^G" you get a "BEEP"
How can we get Windows to allow an audible beep to be heard from the on-board speaker.
P.S The sound card was turned off in the BIOS as well.
TIA
Claude
At 05 SEP 2001 08:54AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Have you tried using a *.wav file and our playwav.exe utility? Simply enable the sound card. Works fine from AREV. Pick your own *.wav file to suit.
You can oscillate the speaker from an RBASIC program (using the RBASIC OUT command), but CPU speed variations will vary the pitch, and it sounds quite poor in comparison to the quality and consistency of a *.wav file.
We send data to the speaker port from AREV for noises in our arcade game for AREV "memSpace Invaders".
World Leaders in all things RevSoft
At 05 SEP 2001 09:45AM C Mansutti wrote:
The thing is….
We don't actually want to connect speakers to the sound card due to space limitations. So the sound card stays off.
Also I don't really want to add RBasic code to what in effect works perfectly well when not in a Windows shell.
Is there some way at getting to windows or… a way to redirect any/all sounds to the onboard speaker?
Claude
At 05 SEP 2001 10:43AM Don Miller - C3 Inc. wrote:
Windows intercepts the bios call to the hardware on-board speaker and gives the asthmatic wheeze. Not easy to get around it without programming.
Wish I could give you a better answer.
Don Miller
C3 Inc.
At 05 SEP 2001 11:59AM C Mansutti wrote:
Another piece of useless information for your archives
http://support.microsoft.com/support/kb/articles/Q138/8/57.asp?LN=EN-GB&SD=gn&FR=0
If you go to the above address you will find a Microsoft product called speak.exe which will play wav files through you pc speaker. It sounds crap but you can hear it, and that's all I was interested in…
Thanks for your comments
Claude
At 05 SEP 2001 05:15PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
subroutine upset_all_neighbourhood_rottweilers(Param)
* Param is "on" or "off"
* this program addresses the speaker from AREV.
* clears all earwax within a four hundred foot radius.
convert @lower.case to @upper.case in Param
OUT 67, SEQ(\B6\)
OUT 66, SEQ(\90\)
OUT 66, SEQ(\00\)
OUT 97, 45
if Param=ON" then
OUT 67, SEQ(\B6\)OUT 66, SEQ(\90\)OUT 66, SEQ(\00\)OUT 97, 45OUT 97, 255end
If you want something more audible and pleasant, try this beeper
routine -
subroutine beeper
* the duration is preset to 0.2 seconds here, but can be increased
* frequency is about 200 Hz
declare subroutine dostime
OUT 67, SEQ(\B6\)
OUT 66, SEQ(\6E\)
OUT 66, SEQ(\12\)
OUT 97, 45
OUT 67, SEQ(\B6\)
OUT 66, SEQ(\90\)
OUT 66, SEQ(\12\)
OUT 97, SEQ(\33\)
a=0
dostime(a)
loop
dostime(b)
while b The Sprezzatura Group[/url]
World Beepers in all things RevSoft