[wdmaudiodev] Re: Battery related APIs in WDM audio driver

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 13 Jul 2018 18:14:14 -0700

Addy wrote:


I'm looking for APIs to register from WaveRT Audio driver for Battery
power related notifications - like when the device is plugged into AC
power for charging or when the power is unplugged and switched to
battery, battery level, etc..

Is there a straight-forward way to get such notifications?

No, and there's a reason.  It's not your job to make policy decisions
based on power status.  The operating system, based on the user
settings, will throttle your activity if that's what the user wanted. 
You should just use as little power as is practical, and let the system
manage the policy.

-- 
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: