diff options
| author | 2010-04-20 14:41:11 -0700 | |
|---|---|---|
| committer | 2010-04-20 14:41:11 -0700 | |
| commit | 8ccbd4ba6d7f1180284df7aa5735dba48b10d8ee (patch) | |
| tree | f1c5a7119131eb8ed3a4e6a705ed22a44a9872b2 /libs/audioflinger/A2dpAudioInterface.cpp | |
| parent | b876bdb52e7c72ced8e7764946e5beb914f17036 (diff) | |
| parent | 2f22d35936d5e9dfaec529ebbe1fbd2a27e843d7 (diff) | |
Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo
Diffstat (limited to 'libs/audioflinger/A2dpAudioInterface.cpp')
| -rw-r--r-- | libs/audioflinger/A2dpAudioInterface.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.cpp b/libs/audioflinger/A2dpAudioInterface.cpp index 747d0e4ce316..995e31ca0797 100644 --- a/libs/audioflinger/A2dpAudioInterface.cpp +++ b/libs/audioflinger/A2dpAudioInterface.cpp @@ -302,7 +302,7 @@ ssize_t A2dpAudioInterface::A2dpAudioStreamOut::write(const void* buffer, size_t  Error:      // Simulate audio output timing in case of error -    usleep(bytes * 1000000 / frameSize() / sampleRate()); +    usleep(((bytes * 1000 )/ frameSize() / sampleRate()) * 1000);      return status;  }  |