diff options
| author | 2009-11-02 13:05:08 -0500 | |
|---|---|---|
| committer | 2009-11-02 13:05:08 -0500 | |
| commit | 31f62008db4b2c3bfd24379b76570fd9bd1de2b3 (patch) | |
| tree | 207b2e3266a099c663d96b50cf7d12ae14c7775e /libs | |
| parent | f1d14f6a33bc6086db52a77b6a1217452b7eac90 (diff) | |
| parent | 0bca68cfff161abbc992fec82dc7c88079dd1a36 (diff) | |
Merge change I29bc113c into eclair
* changes:
Fix issue 197683: English IME key-press latency is noticeably higher on passion than sholes. Part 2.
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/audioflinger/AudioFlinger.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp index 0960c81e108e..9c0c8508606b 100644 --- a/libs/audioflinger/AudioFlinger.cpp +++ b/libs/audioflinger/AudioFlinger.cpp @@ -1162,7 +1162,7 @@ AudioFlinger::MixerThread::~MixerThread() bool AudioFlinger::MixerThread::threadLoop() { - uint32_t sleepTime = 0; + uint32_t sleepTime = 1000; uint32_t maxBufferRecoveryInUsecs = getMaxBufferRecoveryInUsecs(); int16_t* curBuf = mMixBuffer; Vector< sp<Track> > tracksToRemove; @@ -1224,6 +1224,7 @@ bool AudioFlinger::MixerThread::threadLoop() } standbyTime = systemTime() + kStandbyTimeInNsecs; + sleepTime = 1000; continue; } } @@ -1591,7 +1592,7 @@ AudioFlinger::DirectOutputThread::~DirectOutputThread() bool AudioFlinger::DirectOutputThread::threadLoop() { - uint32_t sleepTime = 0; + uint32_t sleepTime = 1000; uint32_t maxBufferRecoveryInUsecs = getMaxBufferRecoveryInUsecs(); sp<Track> trackToRemove; sp<Track> activeTrack; @@ -1643,6 +1644,7 @@ bool AudioFlinger::DirectOutputThread::threadLoop() } standbyTime = systemTime() + kStandbyTimeInNsecs; + sleepTime = 1000; continue; } } @@ -1879,7 +1881,7 @@ AudioFlinger::DuplicatingThread::~DuplicatingThread() bool AudioFlinger::DuplicatingThread::threadLoop() { - uint32_t sleepTime = 0; + uint32_t sleepTime = 1000; uint32_t maxBufferRecoveryInUsecs = getMaxBufferRecoveryInUsecs(); int16_t* curBuf = mMixBuffer; Vector< sp<Track> > tracksToRemove; @@ -1940,6 +1942,7 @@ bool AudioFlinger::DuplicatingThread::threadLoop() } standbyTime = systemTime() + kStandbyTimeInNsecs; + sleepTime = 1000; continue; } } |