please test this BAS

Clone / X
February 17, 2010 at 05:59:34
Specs: 2K SP4, AMD Ath 64X2 2GB
http://golden-triangle.com/TONES.ZIP

This is a simple BAS to generate tones. The ZIP contains a compiled version in case you son't have BASIC.

I think it 'works' but I don't hear anything. Probably because of my fancy, whiz bang Realtek sound system.

TIA


=====================================
Helping others achieve escape felicity

M2


See More: please test this BAS

Report •

#1
February 17, 2010 at 06:03:14
Worked fine for me.

SEO Agency & Web Design Agency


Report •

#2
February 17, 2010 at 06:18:06
Probably because of my fancy, whiz bang Realtek sound system.
Doesn't DOSBox emulate the PC speaker?

Report •

#3
February 17, 2010 at 06:23:07
Thanks, Jamie

R2,

Could be but I never used it.

This BAS stuff worked on my old w2k box.

Dunno about this 5.1 sound crap.

As Engineer Scott famously said: The fancier they make the plumming, the easier it is to stop up the drain.

[Star Trek 4?]


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions

#4
February 17, 2010 at 06:36:39
Don't laugh but my BAS extension opens gwbasic.

Anyhow I tipped out the zip, set tones.bas to open with tones.exe and got nothing at all.

I also have RealTek sound.

some other bloke...


Report •

#5
February 17, 2010 at 07:19:17
I think Razor has got it. If I remember correctly the sound command in BASIC drives the PC Speaker. The sound card installed has no relevance.

A lot of PCs these days don't even have a speaker, just a piezoelectric-quartz device with limited capabilities as all it is required to do is sound a few bleeps on boot up. That is probably why you cant hear it. It comes out of my internal piezoelectric-quartz device but is very quiet, barley audible.

SOUND 1000 180 Means play a tone of 1Kz for 180 s. You cant do that with a sound card without going through the sound driver.

Stuart


Report •

#6
February 17, 2010 at 08:00:31
Hi Stuart,

You may be right. But I've never had a speaker in any box.

BTW It's not 180 s; it's 180 clocks. According to QB45 help:

duration, a numeric expression that has an unsigned integer value
between 0 and 65,535, is the number of system clock ticks the
sound lasts. There are 18.2 clock ticks per second.


=====================================
Helping others achieve escape felicity

M2


Report •

#7
February 17, 2010 at 09:33:24
Repeated #4, this time with the speakers turned right up and my ear close to the box. Heard nothing.

some other bloke...


Report •

#8
February 17, 2010 at 10:20:20
Hi Derek,

Yeah, we already know the code is OK, thanks to Jamie.

Somewhere there's a setting to get rid of error beeps, like the not-found beep in Firefox 'find as I type'.

I set it way back to get rid of these beeps. And it did. Now I can't figure out where it is.

LOL


=====================================
Helping others achieve escape felicity

M2


Report •

#9
February 17, 2010 at 13:22:07
OIC - That figures.

My XP is set for "No Sounds" in:

Control Panel > Sounds & Audio Devices > Sounds

.... so presumably that's the reason in my case.

some other bloke...


Report •

Ask Question