2 registered members (7th_zorro, AndrewAMD),
1,079
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
beep() doesn't work
#218672
07/29/08 20:23
07/29/08 20:23
|
Joined: Jun 2008
Posts: 40
pfeldman
OP
Newbie
|
OP
Newbie
Joined: Jun 2008
Posts: 40
|
When I invoke the beep() function, I don't get any sound. If some setup is required before calling beep(), then this should be explained in the documentation. So, I'm not sure whether this is a bug or a documentation problem.
Dr. Phillip M. Feldman
Last edited by pfeldman; 07/29/08 20:24.
|
|
|
Re: beep() doesn't work
[Re: pfeldman]
#218732
07/30/08 08:52
07/30/08 08:52
|
Joined: Aug 2003
Posts: 7,439 Red Dwarf
Michael_Schwarz
Senior Expert
|
Senior Expert
Joined: Aug 2003
Posts: 7,439
Red Dwarf
|
You need to have the beep.wav in yur project directory.
Dr. Dr. Prof. Dipl. Eng. Inf. Michael Schwarz
"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
|
|
|
Re: beep() doesn't work
[Re: pfeldman]
#220926
08/10/08 20:31
08/10/08 20:31
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
beep(); Halts game execution for 100 ms while playing a short sound. Useful during function development, as it allows to quickly find out whether a certain instruction was reached or a certain function was executed at all. The sound can be given through the beep_sound sound pointer, e.g.: SOUND* beep_sound = "beep.wav";
The method mentioned in the manual.
|
|
|
|