Hi all
I have this problem. If you put in variable tempo example 10000 ( 10 second or less ) all work in perfect mode, but if you need more time example 20 minute's ( 1200000 ) is very slow when i press Button1 i wait also 10 second first that this start work. Why ??
Thank to all in advance.
I have this problem. If you put in variable tempo example 10000 ( 10 second or less ) all work in perfect mode, but if you need more time example 20 minute's ( 1200000 ) is very slow when i press Button1 i wait also 10 second first that this start work. Why ??
B4X:
Sub Process_Global
Dim suono As Beeper
End Sub
.....
dim freq as int = 1500 '--> Hz
dim tempo as int = 1200000 ' --> 20 Minute's
Sub Button1_Click
If Button1.Text = "OFF" Then
suono.Release
Button1.Text = "ON"
Else
suono.Initialize(tempo, freq) 'milliseconds, hz
suono.Beep
Button1.Text = "OFF"
End If
End Sub
Thank to all in advance.