making custom sounds?

I'd like to make simple custom sounds and generate them within the program -- similar to the old "play /frequency/duration" in dos basic.

All of the references that I find talk about playing various external sounds -- I'm afraid that these would be too slow and uncontrolled.

Thanks!

vb_newby




Answer this question

making custom sounds?

  • Level255

      <System.Runtime.InteropServices.DllImport("kernel32.dll")> _
      Private Shared Function Beep(ByVal dwFreq As Int32, ByVal dwDuration As Int32) As Boolean
      End Function
    
      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Beep(1000, 1000)
      End Sub
    

  • making custom sounds?