[PATCH v3 2/5] amstream: Implement AMAudioStream::BeginFlush() and ::EndFlush().