Hi,
I am looking for the way to record audio while the device is put to sleep just like the wake-up sensors. The Java APIs (AudioReocrd) does not provide the callback interface as OpenSL ES does. However, it is not clear whether the wakelock is automatically acquired and the device is woken up when the callback is invoked. After conducted a simple audio recording experiment using both OpenSL ES and Android AudioRecord class on Nexus 6. Both APIs seem to acquire the wakelock internally and never releases it until the recording is stopped. Does this behavior depend on the driver implementation or the APIs intentionally acquire the wakelock for some essential reason? Can you give a definitive clarification?
Thanks
Farley