Does not BEEP in QB in DOSbox

General information and assistance with DOSBox.

Does not BEEP in QB in DOSbox

Postby eoredson » 2019-3-30 @ 07:19

I noticed that the BEEP statement in QB in DOSbox does not make any speaker beep sound..
User avatar
eoredson
Newbie
 
Posts: 24
Joined: 2018-4-05 @ 02:47
Location: Minneapolis, Minnesota, USA.

Re: Does not BEEP in QB in DOSbox

Postby Qbix » 2019-3-30 @ 09:16

Next version, if I recall correctly
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Does not BEEP in QB in DOSbox

Postby eoredson » 2019-5-14 @ 03:50

Is that because you have to trap the speaker port and access the frequency/duration of the port call?
User avatar
eoredson
Newbie
 
Posts: 24
Joined: 2018-4-05 @ 02:47
Location: Minneapolis, Minnesota, USA.

Re: Does not BEEP in QB in DOSbox

Postby ripsaw8080 » 2019-5-14 @ 09:23

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.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4397
Joined: 2006-4-25 @ 23:24

Re: Does not BEEP in QB in DOSbox

Postby eoredson » 2019-5-15 @ 01:33

Ok, thanks, I replaced all my BEEP statements with SOUND 900,6 and it works!
User avatar
eoredson
Newbie
 
Posts: 24
Joined: 2018-4-05 @ 02:47
Location: Minneapolis, Minnesota, USA.

Re: Does not BEEP in QB in DOSbox

Postby speon » 2019-5-15 @ 04:18

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.
User avatar
speon
Newbie
 
Posts: 16
Joined: 2007-6-14 @ 06:49

Re: Does not BEEP in QB in DOSbox

Postby ripsaw8080 » 2019-5-15 @ 04:56

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.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4397
Joined: 2006-4-25 @ 23:24

Re: Does not BEEP in QB in DOSbox

Postby eoredson » 2019-5-17 @ 04:51

I eventually added a config option to override the frequency in hertz and duration in ticks of a sound statement..
User avatar
eoredson
Newbie
 
Posts: 24
Joined: 2018-4-05 @ 02:47
Location: Minneapolis, Minnesota, USA.

Re: Does not BEEP in QB in DOSbox

Postby eoredson » 2019-5-17 @ 06:16

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!?
User avatar
eoredson
Newbie
 
Posts: 24
Joined: 2018-4-05 @ 02:47
Location: Minneapolis, Minnesota, USA.

Re: Does not BEEP in QB in DOSbox

Postby ripsaw8080 » 2019-5-17 @ 11:13

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.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4397
Joined: 2006-4-25 @ 23:24


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests