Pc speaker beep ^G \a ... doent work in DOSbox?

Here you can discuss the development of patches.

Pc speaker beep ^G \a ... doent work in DOSbox?

Postby lc » 2008-7-07 @ 10:46

I have a C program using "putchar(\a)" to make a beep under dos.

but under Dos bos it doent work.

any ideas to solve it

I thank you in advance
lc
Newbie
 
Posts: 2
Joined: 2008-7-07 @ 10:36

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby wd » 2008-7-07 @ 10:56

One topic is enough please.

BEL is not supported. Use some small program that deploys the pcspeaker
if you really have a need for that.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby lc » 2008-7-07 @ 11:43

I thank you for you quick responce,
wath do you means about "deploys the pcspeaker"?

is it the same issue for putchar(\0x07);

best regards
Laurent
lc
Newbie
 
Posts: 2
Joined: 2008-7-07 @ 10:36

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby wd » 2008-7-07 @ 12:01

is it the same issue for putchar(\0x07);

Yes, this is the same character.


wath do you means about "deploys the pcspeaker"?

Write some program that turns on the pcspeaker, waits for a short
while, then turns the pcspeaker off. Then you can just execute that
program instead of your putchar() thing.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby h-a-l-9000 » 2008-7-07 @ 12:43

Or just make a patch for DOSBox :)
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby wd » 2008-7-07 @ 14:02

[note to self: kill hal by times] :pppt:

Can't think of any use for it at the moment though (the BEL thing, that it).
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby h-a-l-9000 » 2008-7-07 @ 15:41

I didn't say anywhere he should bother you to put it in CVS :kiss:
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby wd » 2008-7-07 @ 16:31

no but patches++
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby h-a-l-9000 » 2008-8-06 @ 15:57

Come and get me :P
You do not have the required permissions to view the files attached to this post.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby wd » 2008-8-06 @ 17:45

Gotcha, but everytime i beat you you produce a *beep* how odd.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby h-a-l-9000 » 2008-8-08 @ 14:39

I'm afraid you don't do enough damage...


(I like this one as it makes w95 shut down gracefully instead of lock or crash when told to restart)
You do not have the required permissions to view the files attached to this post.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby Qbix » 2008-8-08 @ 15:04

there is an int 10 string printfunction as well. Saves a few calls ;)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby h-a-l-9000 » 2008-8-08 @ 15:27

ah=13h?

I'd have to mess with guest memory though
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Pc speaker beep ^G \a ... doent work in DOSbox?

Postby Qbix » 2008-8-08 @ 15:39

ah yes. true. Stick with the loop then
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan


Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 2 guests