Announcement

Collapse
No announcement yet.

Not even a peep in Beep

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not even a peep in Beep

    '
    Code:
    'PBWIN 9.00 - WinApi 05/2008 - XP Pro SP3
    #Compile Exe  
    #Include "WIN32API.INC"
    #Include "COMDLG32.INC"
     
     
    Function PBMain
       Beep
    End Function
    '
    It's a pretty day. I hope you enjoy it.

    Gösta

    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

  • #2

    Who uses BEEP anymore?

    MS-DOS is dead. Deal with it.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      PB uses Beep
      Purpose Sound a tone through the computer's speaker.

      Syntax BEEP

      Remarks BEEP plays the default Windows waveform sound, typically a ¼ second tone, through either the built-in speaker; or a sound card if installed (in which case the Windows "Default Beep" sound is played). The Default Beep can be configured in the Sounds section of Control Panel.
      Did you check the setting for Default Beep in the Control Panel?
      Your example plays OK on my machine - PBWIN 9.00 - Win32Api 27 January 2005 - XP Pro SP2

      I like to use WinBeep (e.g. "WinBeep 800, 50") myself - though I believe it may be broken in Vista.
      Last edited by Dave Biggs; 10 Sep 2008, 10:17 AM. Reason: Correction - date of Win32API.inc released w/ PBWin90
      Rgds, Dave

      Comment


      • #4
        Originally posted by Michael Mattias View Post

        Who uses BEEP anymore?

        MS-DOS is dead. Deal with it.
        RTFM {insert appropriate cutesy here}

        ===========================================
        "It has become appallingly obvious
        our technology has exceeded our humanity."
        Albert Einstein (1879-1955)
        ===========================================
        It's a pretty day. I hope you enjoy it.

        Gösta

        JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
        LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

        Comment


        • #5
          Originally posted by Dave Biggs View Post
          PB uses Beep

          Did you check the setting for Default Beep in the Control Panel?
          Yes (just now). Default is set to "Ding.Wav", which exists (and plays).

          Your example plays OK on my machine - PBWIN 9.00 - WinApi 05/2008 - XP Pro SP2
          Not mine though.


          I like to use WinBeep (e.g. "WinBeep 800, 50") myself - though I believe it may be broken in Vista.
          I use it too. Just thought I'd try Beep just in case it might cause some consternation somewhere (and it did {grin}) I'll try your settings. Have to be better than mine (1000, 100).

          =============================================
          "Nothing is easier to defend than truth,
          yet nothing is more difficult to propagate!"
          Unknown
          =============================================
          It's a pretty day. I hope you enjoy it.

          Gösta

          JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
          LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

          Comment


          • #6
            Code:
            MessageBeep  _ 
               %MB_OK|%MB_ICONASTERISK|%MB_ICONHAND|%MB_ICONEXCLAMATION|%MB_ICONQUESTION
            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              The problem is probably in my machine (Dell XPS 710) Beep produces nothng, neither does MessageBeep. WinBeep works fine though.
              It's a pretty day. I hope you enjoy it.

              Gösta

              JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
              LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

              Comment


              • #8
                The problem is probably in my machine (Dell XPS 710) Beep produces nothng, neither does MessageBeep. WinBeep works fine though
                Well that answers my question before I asked it..(Whether or Not computers even had a "Mini-Speaker" that would beep boop to make a sound these days)

                Engineer's Motto: If it aint broke take it apart and fix it

                "If at 1st you don't succeed... call it version 1.0"

                "Half of Programming is coding"....."The other 90% is DEBUGGING"

                "Document my code????" .... "WHYYY??? do you think they call it CODE? "

                Comment


                • #9
                  Dell XPS Machines

                  There are problems with compatibility with the XPS Dell machines this is only 1 of the many issues. I have read about them recently with others having M$ compatibility problems but only with the XPS line of Dell Machines.

                  Just Info I read ... I guess u could GOOOOOGLLLLLLEEEE IT!
                  LEARNING EXPERIENCE: What you get when you didn't get what you THOUGHT you wanted!

                  Comment


                  • #10
                    Did some poking around with dependance walker..
                    Looks like PB's Beep is a wrapper for MessageBeep(-1)

                    Code:
                     
                      WinBeep 800, 50   'KERNEL32.DLL - Beep()
                      Beep              'USER32.DLL - MessageBeep() - default beep
                      MessageBeep -1    'USER32.DLL - MessageBeep() - default beep
                    Rgds, Dave

                    Comment


                    • #11
                      Maybe this will work. (Because "?" doesn't exist, default sound should play)
                      Code:
                      Sub PlayDefaultSound
                        SndPlaySound  "?", ByVal 0
                      End Sub
                      Regards,
                      Peter

                      "Simplicity is a prerequisite for reliability"

                      Comment


                      • #12
                        >>Looks like PB's Beep is a wrapper for MessageBeep(-1)

                        I can add that BEEP calls the USER32 MessageBeep and does so with beeptype 0 (%MB_OK).
                        Last edited by John Gleason; 11 Sep 2008, 07:50 AM. Reason: added (%MB_OK)

                        Comment


                        • #13
                          MessageBeep() always worked on my Dell XPS running Win/98. (XPS 400 series, ca. 1999)
                          Michael Mattias
                          Tal Systems (retired)
                          Port Washington WI USA
                          [email protected]
                          http://www.talsystems.com

                          Comment


                          • #14
                            The Sweeet Sounds of XP

                            PowerBASIC and related source code. Please do not post questions or discussions, just source code.


                            =============================================
                            "You can only find truth with logic
                            if you have already found truth without it."
                            Gilbert Keith Chesterton (1874-1936)
                            =============================================
                            It's a pretty day. I hope you enjoy it.

                            Gösta

                            JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
                            LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

                            Comment

                            Working...
                            X