B4J Question How to change "BEEP" sound.

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All,

I am looking to make a number of beep sounds. I find the following code in all searches but I am at a loss to see how the tone or duration is determined.

B4X:
Sub Beep
   Dim jo As JavaObject
   jo.InitializeStatic("java.awt.Toolkit")
   Dim toolkit As JavaObject = jo.RunMethod("getDefaultToolkit", Null)
   toolkit.RunMethod("beep", Null)
End Sub

Any clues?

Regards Roger
 
Top