Backport of "audiorate: Make buffer writable before changing its metadata" into 1.18
Backport of !977 (merged) "audiorate: Make buffer writable before changing its metadata".
Commits:
- dcea0b39 audiorate: Make buffer writable before changing its metadata