Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, AndrewAMD), 1,079 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
beep() doesn't work #218672
07/29/08 20:23
07/29/08 20:23
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline 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 Offline
Senior Expert
Michael_Schwarz  Offline
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: Michael_Schwarz] #220916
08/10/08 19:28
08/10/08 19:28
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
It would be helpful if the documentation mentioned this. Also, it would be great if there were some way to avoid having 50 different copies of beep.wav. Thanks!

Re: beep() doesn't work [Re: pfeldman] #220926
08/10/08 20:31
08/10/08 20:31
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Quote:

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.

Re: beep() doesn't work [Re: FBL] #220961
08/11/08 06:14
08/11/08 06:14
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Besides, a default sound is played when beep.wav is not found.

Re: beep() doesn't work [Re: jcl] #221535
08/14/08 15:21
08/14/08 15:21
Joined: Aug 2007
Posts: 38
Pasadena, TX
Volund Offline
Newbie
Volund  Offline
Newbie

Joined: Aug 2007
Posts: 38
Pasadena, TX
In main script, before function main()


sound beep_sound = <beep.wav>;

were you thinking of a console or DOS application beep()?

Re: beep() doesn't work [Re: Volund] #222837
08/21/08 05:51
08/21/08 05:51
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
In the version of Lite-C that I downloaded on June 15, the default sound did not work; no sound was played unless beep_sound was assigned to an existing .wav file. Apparently, this has been fixed in the interim. Thanks!

P.S. Michael Schwarz has an impressive collection of degrees. What does the "inf" stand for? Inferiority complex?

P.P.S. I sometimes use the prefix "Dr." before my name, but never the "PhD" suffix, since that could be an acronym for "piled higher and deeper".

Re: beep() doesn't work [Re: pfeldman] #223274
08/23/08 05:42
08/23/08 05:42
Joined: Jun 2008
Posts: 40
pfeldman Offline OP
Newbie
pfeldman  Offline OP
Newbie

Joined: Jun 2008
Posts: 40
I just tested this now using a version of Lite-C that I downloaded 1 week ago. When beep.wav exists, beep() plays a sound; when beep.wav does not exist, no sound is played. End of story.

Re: beep() doesn't work [Re: pfeldman] #223281
08/23/08 07:09
08/23/08 07:09
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
The version 1 week ago is just the same as of today, its version 1.1. So your beep problem cant have anything to do with the version. But I can tell you, I had the same problem and searched for it for ages!

I finally found that I had a sound named "beep.wav" in one of my subfolders, and that was a very short sound that you almost did not hear. It was played instead of the default sound and so I never heard a beep until I found and removed that sound.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1