commit | e6810ffaa19c6ad747d6f3ae7a38c7f572e9281e | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Tue Jan 03 09:42:47 2012 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Thu Jan 05 11:55:24 2012 -0800 |
tree | 215f8078fbbe1b48bc44fb114472487f8385f544 | |
parent | a8719ad9d53d3fe51e8031b2471e9558b8ef727f [diff] |
Clean up AudioTrack::mActive and stopped() mActive is protected by mLock; volatile is meaningless on SMP. Fixed a couple of places where mActive was accessed without a lock: - stopped() - processAudioBuffer() Added stopped_l() for cases where we already hold the lock. Made mActive a bool not int. Moved down a lock in setPosition that was being acquired too early. Change-Id: I73ff368e991c0db9f9472df0b3f96fd33fcc7311