I do feel a wav audio file, I'm using mediaplayer, but just try to scoltare several times and fast audio file sound of audio files is no more listenable, I must close and restart the application to make it work, why? It seems that pressing multiple times, the buffer will fill and goes haywire the mediaplayer. I am attaching the sample code.
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim MP As MediaPlayer
Dim btnDimmi As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("play")
end sub
Sub btnDimmi_Click
MP.Initialize
MP.Load(File.DirAssets,"fire.wav")
MP.Play
End Sub