I'am playing a little mp3 file with soundpool (sound airhorn) which is located on DirAssets. This was allways working but now on Android 11 it doesn't work any more (several devices).
When i send the mp3 file by a mail attachment it will normaly playing.
Any suggestions?
{code}Dim Snd As SoundPool
Dim LoadId As Int
If Snd.IsInitialized = False Then Snd.Initialize(1)
LoadId = Snd.Load(File.DirAssets,"LuchtHoorn.MP3")
Snd.Play(LoadId,1,1,1,0,0){/code}
Je joue un petit fichier mp3 avec soundpool (sound airhorn) qui se trouve sur DirAssets. Cela fonctionnait toujours mais maintenant sur Android 11 cela ne fonctionne plus (plusieurs appareils).
Lorsque j'envoie le fichier mp3 en pièce jointe, il jouera normalement.
Aucune suggestion?
{code}Dim Snd As SoundPool
Dim LoadId As Int
Si Snd.IsInitialized = False Alors Snd.Initialize(1)
LoadId = Snd.Load(File.DirAssets,"LuchtHoorn.MP3")
Snd.Play(LoadId,1,1,1,0,0){/code}
Dim PlayMusic As SoundPool
Dim LoadId As Int
PlayMusic.Initialize(1)
LoadId = PlayMusic.Load(File.DirAssets,"3.wav")
'PlayMusic.Play(LoadId,1,1,0,2,1)
PlayMusic.Play(LoadId, 1, 1, 1, 1, 1)
Log("id " &LoadId)