just re-using this push function for torch incomming audio data. it empties the buffer in case torchlight stopped emitting instead of draining it over time

This commit is contained in:
2026-06-02 00:35:46 +01:00
parent a02af1a297
commit 009962f120
4 changed files with 7 additions and 8 deletions
+1 -3
View File
@@ -65,8 +65,7 @@ void CRingBuffer::Mix(int16_t *pData, size_t Samples)
}
}
/*
bool CRingBuffer::Push(int16_t *pData, size_t Samples)
bool CRingBuffer::PushTorch(int16_t *pData, size_t Samples)
{
if(Samples > CurrentFree())
return false;
@@ -127,7 +126,6 @@ bool CRingBuffer::Push(int16_t *pData, size_t Samples)
return true;
}
*/
bool CRingBuffer::Push(int16_t *pData, size_t Samples)
{