Fix no audio on zero latency bug. make Xaudio consistent with other APIs

This commit is contained in:
goeiecool9999 2023-12-23 23:13:01 +01:00
parent 4468e7a7f2
commit da9c3c84e8
9 changed files with 45 additions and 16 deletions

View file

@ -114,7 +114,7 @@ CubebAPI::~CubebAPI()
bool CubebAPI::NeedAdditionalBlocks() const
{
std::shared_lock lock(m_mutex);
return m_buffer.size() < s_audioDelay * m_bytesPerBlock;
return m_buffer.size() < GetAudioDelay() * m_bytesPerBlock;
}
bool CubebAPI::FeedBlock(sint16* data)