mercredi 31 août 2016

Soundpool sound not playing on first run...

I am using the Audio Lib 1.63. And I am using Soundpool to play a quick "beep" file.

This is my code:

Code:
  pid = VoiceIt.SP.Play(StartBeep, 1, 1, 10, 0,0)  
But, intermittently, the first time I try to play a file after the app starts, it wont play, other times it will. And all subsequent attempts to play the same sound in the same app session work 100%. So it just sometimes has issues on the first attempt to play something.

So, I added some retry and diag code:

Code:
  ...  
Soundpool sound not playing on first run...

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bAiBS5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire