Changeset 219230 in webkit
- Timestamp:
- Jul 6, 2017 6:56:42 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r219229 r219230 1 2017-07-06 Youenn Fablet <youenn@apple.com> 2 3 Rendering of WebRTC audio in AudioSampleDataSource may trigger crackles 4 https://bugs.webkit.org/show_bug.cgi?id=174223 5 6 Reviewed by Eric Carlson. 7 8 We try reading too quickly and need to back off a little bit if we do not enough data. 9 This only affects real audio and not web audio, hence validated through manual testing only. 10 11 * platform/audio/mac/AudioSampleDataSource.mm: 12 (WebCore::AudioSampleDataSource::pullSamplesInternal): 13 1 14 2017-07-06 Sam Weinig <sam@webkit.org> 2 15 -
trunk/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm
r214850 r219230 270 270 271 271 if (framesAvailable < sampleCount) { 272 int64_t delta = static_cast<int64_t>(timeStamp) - static_cast<int64_t>(endFrame); 273 if (delta > 0) 274 m_outputSampleOffset -= std::min<int64_t>(delta, sampleCount); 275 } 276 277 if (!framesAvailable) { 272 m_outputSampleOffset -= sampleCount - framesAvailable; 278 273 AudioSampleBufferList::zeroABL(buffer, byteCount); 279 274 return false;
Note: See TracChangeset
for help on using the changeset viewer.