Audrey M. Roy

Art, design, Python, JavaScript, and general silliness 
« Back to blog

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. 

Posted by Audrey M Roy 

Comments (2)

Aug 30, 2009
Andrey Petrov said...
Heh heh "network tickle" :P
Aug 31, 2009
Audrey M Roy said...
I crack up whenever I see that in the debug log now, thanks to you.

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter