Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

calculate appropriate audio spin loop wait using Audio profile #1

Closed
atsushieno opened this issue Nov 29, 2015 · 1 comment
Closed

Comments

@atsushieno
Copy link
Owner

Currently opensles driver runs spin loop to deal with audio buffers, which is waste of CPU resources.

// FIXME: this should be removed.

The usleep() adjustment is not ideal. It should take advantage of some audio hardware profiles introduced at Android 4.2 (or earlier). Research needed.

Also it may be better to introduce additional loop handler that switches to longer pooling (or sleep() instead of usleep() for long pause).

@atsushieno
Copy link
Owner Author

the call to usleep() is adjusted at ca29fb9 so the issue is technically gone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant