Hi guys,
I saw many different thereads on this issue hete. Some of them are very aged now. https://www.b4x.com/android/forum/threads/beeper-bug.14077/
I tried a few of them with no visible effect. After a few times beeper working, it just stops playing sounds. See what I already did:
Any clues?
Regards,
Fernando
I saw many different thereads on this issue hete. Some of them are very aged now. https://www.b4x.com/android/forum/threads/beeper-bug.14077/
I tried a few of them with no visible effect. After a few times beeper working, it just stops playing sounds. See what I already did:
- Used two different beepers
- Released it after a few executions
- Released it after every execution
- Created them at Sub Process_Globals level
Any clues?
Regards,
Fernando
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private wBeeper1, wBeeper2 As Beeper
End Sub
Sub PlayTune(Tune As Int)
wCtPlayed = wCtPlayed + 1
Dim t As Int = Tune
Log(wCtPlayed & ") Reproduzindo tom " & t)
wBeeper1.Initialize(300, 500 + (t * 100))
wBeeper1.Beep
End Sub