|
@@ -1391,21 +1391,27 @@ Begin
|
|
End;
|
|
End;
|
|
|
|
|
|
|
|
|
|
|
|
+{$ifdef linux}
|
|
const
|
|
const
|
|
KIOCSOUND = $4B2F; // start sound generation (0 for off)
|
|
KIOCSOUND = $4B2F; // start sound generation (0 for off)
|
|
|
|
+{$endif}
|
|
|
|
|
|
Procedure Sound(Hz: Word);
|
|
Procedure Sound(Hz: Word);
|
|
begin
|
|
begin
|
|
|
|
+{$ifdef linux}
|
|
if not OutputRedir then
|
|
if not OutputRedir then
|
|
fpIoctl(TextRec(Output).Handle, KIOCSOUND, Pointer(1193180 div Hz));
|
|
fpIoctl(TextRec(Output).Handle, KIOCSOUND, Pointer(1193180 div Hz));
|
|
|
|
+{$endif}
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Procedure NoSound;
|
|
Procedure NoSound;
|
|
begin
|
|
begin
|
|
|
|
+{$ifdef linux}
|
|
if not OutputRedir then
|
|
if not OutputRedir then
|
|
fpIoctl(TextRec(Output).Handle, KIOCSOUND, nil);
|
|
fpIoctl(TextRec(Output).Handle, KIOCSOUND, nil);
|
|
|
|
+{$endif}
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|