Commit 1b8ddf59 authored by David Reid's avatar David Reid

AAudio: Add a comment clarifying draining.

parent 38685288
...@@ -25810,6 +25810,14 @@ static ma_result ma_device_stop_stream__aaudio(ma_device* pDevice, ma_AAudioStre ...@@ -25810,6 +25810,14 @@ static ma_result ma_device_stop_stream__aaudio(ma_device* pDevice, ma_AAudioStre
MA_ASSERT(pDevice != NULL); MA_ASSERT(pDevice != NULL);
/*
From the AAudio documentation:
The stream will stop after all of the data currently buffered has been played.
This maps with miniaudio's requirement that device's be drained which means we don't need to implement any draining logic.
*/
resultAA = ((MA_PFN_AAudioStream_requestStop)pDevice->pContext->aaudio.AAudioStream_requestStop)(pStream); resultAA = ((MA_PFN_AAudioStream_requestStop)pDevice->pContext->aaudio.AAudioStream_requestStop)(pStream);
if (resultAA != MA_AAUDIO_OK) { if (resultAA != MA_AAUDIO_OK) {
return ma_result_from_aaudio(resultAA); return ma_result_from_aaudio(resultAA);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment