25
« on: August 29, 2011, 11:28:58 pm »
Thanks, I haven't tested it on any other devices besides my DroidX yet, so that's not a huge surprise to me.
From the log, the problem seems to begin here:
08-29 21:47:34.519: VERBOSE/AudioHardware(115): openMixer_l() mMixerOpenCnt: 0
08-29 21:47:34.519: VERBOSE/AudioHardware(115): open playback normal
08-29 21:47:34.519: VERBOSE/AudioHardware(115): write() wakeup setting route SPK
08-29 21:47:34.562: WARN/AudioFlinger(115): write blocked for 109 msecs, 2 delayed writes, thread 0xcb58
And it then times out, with the following:
08-29 21:48:03.218: INFO/InputDispatcher(189): Application is not responding: AppWindowToken{408acb20 token=HistoryRecord{407cf6c0 paulscode.android.sound.demo/.ALAndroidDemo}}. 5002.5ms since event, 5001.1ms since wait started
08-29 21:48:03.218: INFO/WindowManager(189): Input event dispatching timed out sending to application AppWindowToken{408acb20 token=HistoryRecord{407cf6c0 paulscode.android.sound.demo/.ALAndroidDemo}}
08-29 21:48:03.265: INFO/Process(189): Sending signal. PID: 3425 SIG: 3
08-29 21:48:03.265: INFO/dalvikvm(3425): threadid=4: reacting to signal 3
08-29 21:48:03.269: INFO/dalvikvm(3425): Wrote stack traces to '/data/anr/traces.txt'
The first thing I'd like to rule out is the OS being too "smart" for its own good. It might just be detecting that the "onCreate" thread is blocking, and shutting down the app. Let me rewrite the demo a little less "hackish".
If that's not the problem, I'm guessing from where the problem starts that it's something related to the hardware mixer. Is anything else playing audio at the same time you run the demo? Try rebooting your phone and then running the demo again to see if it is still silent.
Also, which version of Android are you running on your phone?
The log also indicates that stack traces are being saved to /data/anr/traces.txt. Could you could upload that output somewhere I could take a look at it?