Audrey M. Roy

Art, design, Python, JavaScript, and general silliness 
Filed under

audio

 

PhoneGap - AudioFlinger error while receiving a Gmail email

In my (XUI) on click handler, I have this:
navigator.notification.beep(2);


The problem is that beeping stops working after awhile.  I think it stops working whenever my phone receives a network tickle from Gmail.

If I keep playing the game after the sound stops, the app crashes entirely after a little longer.  That's really bad.

The log.txt showing the AudioFlinger error & Gmail notification:  

I'm stuck.  I guess these are my options:

  • Play a non-beep sound on click and see if it still happens.  Find a free wav to use.
  • If that doesn't help, look at PhoneGap.java to better understand how audio works in PhoneGap.  And learn how audio generally works when using the Android SDK.
  • Give up and remove audio from the game. 

Filed under  //   Android   audio   PhoneGap   programming  
Posted by Audrey M Roy 

Comments [3]