The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: dedndave on March 05, 2012, 04:30:09 AM

Title: Vista Beep Test
Post by: dedndave on March 05, 2012, 04:30:09 AM
could someone with Vista test this - i want to know if it beeps
please check your volume/mute first   :bg

as i understand it, Beep does not work under vista
so, i want to test this method
Title: Re: Vista Beep Test
Post by: donkey on March 05, 2012, 05:30:35 AM
Tried it on a Vista64 and Vista32 virtual box and it didn't beep.
Title: Re: Vista Beep Test
Post by: dedndave on March 05, 2012, 06:37:34 AM
thanks Edgar
i guess you have to go with PlaySound or better   :P
Title: Re: Vista Beep Test
Post by: jj2007 on March 05, 2012, 09:42:00 AM
Dave,
Just tested: both conout 7 and Beep freq, duration work under Win7.
Jochen
Title: Re: Vista Beep Test
Post by: Tedd on March 05, 2012, 12:53:08 PM
Beep(freq,duration) works on all versions XP+ as far as I know, you'll just have to guess appropriate values if you want to simulate the 'bell' character.
Title: Re: Vista Beep Test
Post by: donkey on March 05, 2012, 02:47:22 PM
Quote from: Tedd on March 05, 2012, 12:53:08 PM
Beep(freq,duration) works on all versions XP+ as far as I know, you'll just have to guess appropriate values if you want to simulate the 'bell' character.


I haven't tried it under Vista but Microsoft says it was dropped:

Quote from: MSDN - Beep function Eventually because of the lack of hardware to communicate with, support for Beep was dropped in Windows Vista and Windows XP 64-Bit Edition.

In Windows 7, Beep was rewritten to pass the beep to the default sound device for the session. This is normally the sound card, except when run under Terminal Services, in which case the beep is rendered on the client.

Ofcourse the function may have been made available through a service pack or patch.
Title: Re: Vista Beep Test
Post by: mineiro on March 05, 2012, 07:22:01 PM
Tested this example under Xp 64 and doesn't beep.
Title: Re: Vista Beep Test
Post by: dedndave on March 06, 2012, 02:46:51 AM
thanks guys   :U
Title: Re: Vista Beep Test
Post by: merlin on March 15, 2012, 04:28:21 PM
It beeps on windows 7 x64
Title: Re: Vista Beep Test
Post by: dedndave on March 16, 2012, 05:18:44 AM
thanks, merlin
welcome to the forum   :U