Results 1 to 3 of 3

Thread: Beep beep ... ?

  1. #1

    Beep beep ... ?

    Hi folks,

    Been writing something for the dark room (photography).
    Used the SAPI module because Beep doesn't work here, Play_sound seems to be removed. (?)
    How do I play some sounds (a dark room is mostly dark, need some vocal contact)

    Thanks i advance

    Rob
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    406
    Rep Power
    57
    Hello RobbeK


    To play a sound (wav) try this here:


    Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" Alias "PlaySound" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
    
    Test:


    PaySound "myWav",0,1

    Or Beep

    Declare Function Beep Lib "kernel32.dll" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
    

    Test:
    Beep 440,500
    Last edited by peter; 25-02-2014 at 13:30.

  3. #3
    Thanks Peter, .. perfect !

Similar Threads

  1. Replies: 0
    Last Post: 13-04-2012, 00:29

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •