mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
AAudio: Add a comment clarifying draining.
This commit is contained in:
@@ -25810,6 +25810,14 @@ static ma_result ma_device_stop_stream__aaudio(ma_device* pDevice, ma_AAudioStre
|
||||
|
||||
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);
|
||||
if (resultAA != MA_AAUDIO_OK) {
|
||||
return ma_result_from_aaudio(resultAA);
|
||||
|
||||
Reference in New Issue
Block a user