VOGONS


First post, by eoredson

User metadata
Rank Newbie
Rank
Newbie

I noticed that the BEEP statement in QB in DOSbox does not make any speaker beep sound..

Links to my MUD

Dndbbs executables
http://www.filegate.net/pdn/pdnbasic/DND50A2E.ZIP

Dndbbs source
http://www.filegate.net/pdn/pdnbasic/DND50A2S.ZIP

Dndbbs upgrade (10/15/2019)
http://www.filegate.net/pdn/pdnbasic/DND50A2U.ZIP

Reply 1 of 9, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Next version, if I recall correctly

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 9, by eoredson

User metadata
Rank Newbie
Rank
Newbie

Is that because you have to trap the speaker port and access the frequency/duration of the port call?

Links to my MUD

Dndbbs executables
http://www.filegate.net/pdn/pdnbasic/DND50A2E.ZIP

Dndbbs source
http://www.filegate.net/pdn/pdnbasic/DND50A2S.ZIP

Dndbbs upgrade (10/15/2019)
http://www.filegate.net/pdn/pdnbasic/DND50A2U.ZIP

Reply 3 of 9, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The BEEP statement outputs a BEL (ASCII 7) character, and producing a speaker tone for BEL has only been implemented in SVN.

With QBasic in 0.74(-2) you can use a "SOUND 900,6" statement for a tone with approximately the same frequency and duration. Professional versions of QB may have a different or enhanced statement for speaker tones; not sure.

Reply 4 of 9, by eoredson

User metadata
Rank Newbie
Rank
Newbie

Ok, thanks, I replaced all my BEEP statements with SOUND 900,6 and it works!

Links to my MUD

Dndbbs executables
http://www.filegate.net/pdn/pdnbasic/DND50A2E.ZIP

Dndbbs source
http://www.filegate.net/pdn/pdnbasic/DND50A2S.ZIP

Dndbbs upgrade (10/15/2019)
http://www.filegate.net/pdn/pdnbasic/DND50A2U.ZIP

Reply 5 of 9, by speon

User metadata
Rank Newbie
Rank
Newbie

Is there by any chance a way to ECHO or TYPE the BEL symbol at the command prompt from a batch or text file? There are a few other control codes as well (8-10, 13, 27) that I've thus far been unable to work out a way to display the associated ASCII character/glyph in DOSBox (0.74) - presumably because of the fundamental and important keyboard strokes they typically represent. Thanks kindly, in advance, for any information.

Reply 6 of 9, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The symbols of certain control characters are not displayed by teletype output. In real DOS you get a caret symbol followed by a letter (e.g. ^G for BEL), although DOSBox's internal DOS does not do that and in some cases a symbol is displayed. The way around the "processing" of control characters is to write to display memory directly rather than using any form of teletype output.

Reply 7 of 9, by eoredson

User metadata
Rank Newbie
Rank
Newbie

I eventually added a config option to override the frequency in hertz and duration in ticks of a sound statement..

Links to my MUD

Dndbbs executables
http://www.filegate.net/pdn/pdnbasic/DND50A2E.ZIP

Dndbbs source
http://www.filegate.net/pdn/pdnbasic/DND50A2S.ZIP

Dndbbs upgrade (10/15/2019)
http://www.filegate.net/pdn/pdnbasic/DND50A2U.ZIP

Reply 8 of 9, by eoredson

User metadata
Rank Newbie
Rank
Newbie

I did create a file BEEP.TXT which contains an ASCII 7 and typed it in CMD and it returned a BEEP but did not in DOSbox!?

Links to my MUD

Dndbbs executables
http://www.filegate.net/pdn/pdnbasic/DND50A2E.ZIP

Dndbbs source
http://www.filegate.net/pdn/pdnbasic/DND50A2S.ZIP

Dndbbs upgrade (10/15/2019)
http://www.filegate.net/pdn/pdnbasic/DND50A2U.ZIP

Reply 9 of 9, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

As I mentioned before, the BEEP statement in QB outputs a BEL (ASCII 7), so it's little different than using TYPE to output a BEL. If you must have the speaker tone for BEL right now then use an SVN build of DOSBox, otherwise wait for the next release. Thread closed; nothing more needs to be said on this subject.