sa_stream_get_min_write returns the result of snd_pcm_sw_params_get_start_threshold, which is reported in frames. nsAudioStream::GetMinWriteSamples and its callers expect the result in samples. The rest of sydneyaudio's API actually works in bytes, so to fix this sa_stream_get_min_write will be modified to report the result in bytes, and nsAudioStream can then convert that to a sample count.
Created attachment 553358 [details] [diff] [review] patch v0
Created attachment 553359 [details] [diff] [review] patch v0.1 Forgot to qref part of the patch.