Backport of "pitch: Fix race between putSamples() and setting soundtouch parameters" into 1.16
Backport of !566 (merged) "pitch: Fix race between putSamples() and setting soundtouch parameters".
Commits:
- 52f736c2 pitch: Fix race between putSamples() and setting soundtouch parameters