Android Question Playing sound

anaylor01

Well-Known Member
Licensed User
Longtime User
Sound doesn't always play like it should. Can anyone see the problem in the code below?
B4X:
    If lblTimer.Text <= "10" Then
        lblTimer.textColor = Colors.red
        Sound.Initialize(2)
        ticksnd = Sound.Load(File.DirAssets,"beep.mp3")
        Sound.Play(ticksnd, 1, 1, 10, 0,0)
    End If
 

DonManfred

Expert
Licensed User
Longtime User
i guess you should initialize Sound only once and after that only use Play.
 
Upvote 0
Top