latch Active Member Licensed User Longtime User Nov 5, 2012 #1 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: Code: Copy 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
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: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Nov 6, 2012 #2 SoundPool may fail on some files and some devices. Make sure that the music file is not too long. You can check the unfiltered logs to see SoundPool error messages. Upvote 0
SoundPool may fail on some files and some devices. Make sure that the music file is not too long. You can check the unfiltered logs to see SoundPool error messages.