1. Problem with sound().

I can't seem to get sound to work correctly - maybe because I'm not using
it the right way:

--START
include graphics.e
atom timecount
timecount = time()
sound(1000)
while time() - timecount < .05 do end while
sound(0)
--END

Question is, is this correct, and if so, why isn't it working on my computer?
It just makes two low beeps, as if it is turning on the PC speaker, and then
switching it off...

Thanks in advance
Peter Millan

new topic     » topic index » view message » categorize

2. Re: Problem with sound().

Pete,

If you're meaning to activate the pc speaker, that should work, but with one
very short sorta high beep, not two low ones; might try with longer time
span of 1 second to better hear if it's working right?  Note that sound()
does not activate the sound card speakers, just the pc internal speaker.

Dan Moyer


Pete wrote:


I can't seem to get sound to work correctly - maybe because I'm not using
it the right way:

--START
include graphics.e
atom timecount
timecount = time()
sound(1000)
while time() - timecount < .05 do end while
sound(0)
--END

Question is, is this correct, and if so, why isn't it working on my
computer?
It just makes two low beeps, as if it is turning on the PC speaker, and then
switching it off...

Thanks in advance
Peter Millan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu