I think this problem started when I moved to v2, but I can't remember.
Sound works occasionally and my sound code has not changed.
Here is my relevant code:
Sound works occasionally and my sound code has not changed.
Here is my relevant code:
B4X:
Sub Globals
Dim sp As SoundPool
Dim introsp,introld As Int
end sub
Sub Activity_Create(FirstTime As Boolean)
introld = sp.Load(File.DirAssets, "intro.mp3")
someothersub
end sub
Sub someothersub
introsp = sp.Play(introld, 1, 1 , 5, 0, 1)
sub