News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

beep

Started by raleeper, May 16, 2007, 10:47:03 PM

Previous topic - Next topic

dedndave

i was thinking it may be more related to a hardware issue, somehow

GregL

Beep works fine in x64, I just tried it.

They must be saying the sc config beep start= disabled command is not supported. ??





Mark Jones

Which x64? I'm using XP Pro x64, and Beep() definitely is not working. The driver is apparently there and started (Beep.sys), but calling the function makes no sound.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

dedndave

i don't mean this as an insult, Mark
are the speaker wires connected ?
the reason i say that is, it seems to me that if the OS did not support the function, it would burp at you and say so

Mark Jones

That's a logical conclusion Dave, but this mainboard has a built-in piezo device. (And the function worked in XP x32 prior.) :wink
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

dedndave

ok - just checkin - lol
i was trying to figure out what is different about your machine that makes it nonfunctional
wires are a good place to start (you be surprised how many "no sound" problems are related to wiring)
because these newer OS's don't allow direct i/o with hardware, it makes it harder to troubleshoot
but, isolating the problem is a little like playing sherlock holmes
when you have excluded the impossible, whatever remains, however improbable, must be the truth

GregL

Mark,

Windows 7 Beta x64.  I used Pelle's C and created an x64 executable.






sinsi

32-bit code in 64-bit Windows 7 works too - the beep comes through the soundcard

include \masm32\include\masm32rt.inc
.code
start:
    invoke Beep,750,300
    exit
end start

Light travels faster than sound, that's why some people seem bright until you hear them.

GregL

The beep came through the sound card on Windows 7 x64 too.


ThexDarksider

I remember something when I was coding in basic in 3rd grade, when I had win98 the PC speaker worked fine, however with XP (x32) needed an additional .sys file that was included within the installation. Maybe you need something similar here. :toothy I'm not really sure about that, it was 5 years ago lol.

Mark Jones

Under device manager, hidden devices, there is a Beep driver, enabled, started, in both x32 and x64 WinXP, however no sound is coming from the latter.

This is not an isolated incident:

https://forums.codegear.com/thread.jspa?threadID=14706   <--- no solution
http://forums.silverfrost.com/viewtopic.php?t=1234   <--- no solution
http://www.autohotkey.com/forum/topic44614.html   <--- no solution
http://www.eggheadcafe.com/forumarchives/NETvc/Jul2005/post23278925.asp   <--- no solution
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=356978   <--- solution: not supported.

This was meant to be informative, not a question. :wink
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

dedndave

so, their solution is to change the documentation rather than releasing a hotfix
talk about friggen lazy

GregL

After reading those links Mark posted, it looks like it doesn't work on Vista x64 but does on Windows 7 x64.  So ... they fixed it on Windows 7.


BlackVortex

That's great news !  The beep will live on !!