H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Feb 27, 2017 #1 i defined B4X: Dim SOUNDID As Int Dim sounds As SoundPool in global processes and i bot the initialization in Activity_Create B4X: sounds.Initialize(1) and i put this code B4X: 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 B4X: Dim SOUNDID As Int Dim sounds As SoundPool in global processes and i bot the initialization in Activity_Create B4X: sounds.Initialize(1) and i put this code B4X: 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