I have a few mp3's in my project. I know the sound works and the code works because I can hear the other sounds. Here is what I have:
I added the file to my project and everything but I hear nothing? Is there a limit on playback length or size?? It is only 1:14 and 2mb'ish. GameMusic is the file that won't play.
B4X:
Dim SP As SoundPool
Dim LoadId1, PlayId1, LoadId2, PlayId2, LoadId3, PlayId3, LoadId4, PlayId4 As Int
B4X:
SP.Initialize(4)
LoadId1 = SP.Load(File.DirAssets, "button-10.mp3")
LoadId2 = SP.Load(File.DirAssets, "button-6.mp3")
LoadId3 = SP.Load(File.DirAssets, "button-7.mp3")
LoadId4 = SP.Load(File.DirAssets, "GameMusic.mp3")
B4X:
PlayId4 = SP.Play(LoadId4, 1, 1, 1, 0, 1)
I added the file to my project and everything but I hear nothing? Is there a limit on playback length or size?? It is only 1:14 and 2mb'ish. GameMusic is the file that won't play.
Last edited: