Update queue size as per Rene's suggestion.

pull/657/head
Kevin 10 months ago
parent 156147b83d
commit 2f5aa0dd5c
  1. 7
      src/minidexed.cpp

@ -279,7 +279,12 @@ bool CMiniDexed::Initialize (void)
Channels = 2; // 16-bit Stereo
}
#endif
if (!m_pSoundDevice->AllocateQueueFrames (m_pConfig->GetChunkSize () / Channels))
// Need 2 x ChunkSize / Channel queue frames as the audio driver uses
// two DMA channels each of ChunkSize and one single single frame
// contains a sample for each of all the channels.
//
// See discussion here: https://github.com/rsta2/circle/discussions/453
if (!m_pSoundDevice->AllocateQueueFrames (2 * m_pConfig->GetChunkSize () / Channels))
{
LOGERR ("Cannot allocate sound queue");

Loading…
Cancel
Save