Why won't Beep work on my machine????
I am running a Dell with Windoze 98 2nd ed.

Here is the code.


Beep PROTO :dword, :dword

E4f dw 329.63 ; frequency
E4d dw 325 ; duration

include Beep, E4f, E4d

I also question the fraction in E4f.
I am trying to sound the pitch E4.

Thanks for ant help.....
Posted on 2003-07-23 18:43:56 by shankle
The two parameters are ignored in Win98SE so the frequency and duration could be anything, the output will be the same. (I assume the include Beep... was a typo)
Frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF).

Windows Me/98/95: The Beep function ignores this parameter.

Duration of the sound, in milliseconds.

Windows Me/98/95: The Beep function ignores this parameter.

BTW the beep function is included in the Kernel32 library no need for a proto.
Posted on 2003-07-23 19:27:02 by donkey

E4f dw 329.63 ; frequency

You cannot have a real number in a DWORD, use 329 or 330 instead.
Posted on 2003-07-23 19:39:22 by donkey