H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Feb 27, 2017 #1 i defined Code: Copy Dim SOUNDID As Int Dim sounds As SoundPool in global processes and i bot the initialization in Activity_Create Code: Copy sounds.Initialize(1) and i put this code Code: Copy SOUNDID = sounds.Load(File.DirAssets,"notify.mp3") sounds.Play(SOUNDID, 1, 1, 10, 0,0) in command button and i have notify.mp3 in my DirAssets but when i press the button no thing played what the reason is????
i defined Code: Copy Dim SOUNDID As Int Dim sounds As SoundPool in global processes and i bot the initialization in Activity_Create Code: Copy sounds.Initialize(1) and i put this code Code: Copy SOUNDID = sounds.Load(File.DirAssets,"notify.mp3") sounds.Play(SOUNDID, 1, 1, 10, 0,0) in command button and i have notify.mp3 in my DirAssets but when i press the button no thing played what the reason is????
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2017 #2 What is the value of Log(SOUNDID)? SoundPool will fail to load non-short files. Upvote 0