Y ycxy Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-25 #2 Delphi下的Beep没有参数 Windows 的Beep有参数 BOOL Beep( DWORD dwFreq, // sound frequency, in hertz DWORD dwDuration // sound duration, in milliseconds );
Delphi下的Beep没有参数 Windows 的Beep有参数 BOOL Beep( DWORD dwFreq, // sound frequency, in hertz DWORD dwDuration // sound duration, in milliseconds );
S suocy5 Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-25 #3 procedure BeepEx(feq:word=1200;delay:word=1); procedure BeepOff; begin asm in al $61; and al $fc; out $61 al; end; end; const scale=1193180; var temp:word; begin temp:=scale div feq; asm in al 61h; or al 3; out 61h al; mov al $b6; out 43h al; mov ax temp; out 42h al; mov al ah; out 42h al; end; sleep(delay); beepoff; end;
procedure BeepEx(feq:word=1200;delay:word=1); procedure BeepOff; begin asm in al $61; and al $fc; out $61 al; end; end; const scale=1193180; var temp:word; begin temp:=scale div feq; asm in al 61h; or al 3; out 61h al; mov al $b6; out 43h al; mov ax temp; out 42h al; mov al ah; out 42h al; end; sleep(delay); beepoff; end;
S stuwe Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-25 #4 windows.beep()就可以 要不就匯編 論壇上面有,搜索一下