am 0fabf2e8
: am 8ccbd4ba
: 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
Merge commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8' into kraken * commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8': Fix bug 2604132 40s skip after undocking
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user