Hi Glenn,

Primarily want to know if the device is moving or not. So probably have to 
get info from accelerometer or GPS.

What I am looking for is how to access this information from Audio HAL.

Thanks

On Thursday, March 27, 2014 10:05:32 PM UTC-7, Glenn Kasten wrote:
>
> I'm not sure what kind of sensors you need to  get information from, but
> there's an example of monitoring device orientation and rotation in  
>
> frameworks/base/media/java/android/media/AudioService.java.
> Search for mMonitorOrientation and mMonitorRotation.
> On Wednesday, March 26, 2014 8:07:09 PM UTC-7, Uday Gupta wrote:
>>
>> Hi,
>>
>> I am working on some audio algorithm in audio HAL. This audio algorithm 
>> needs to get the information from the sensors. What would be the best way 
>> to get this information?
>>
>> 1. Directly call the kernel sensor interface.
>> 2. Use the sensor service.
>>
>> Thanks
>>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to