Reinstate original CMiniDexed::Process to see if crackle goes away

newer-net
probonopd 4 weeks ago committed by GitHub
parent cccd6513ec
commit 992ad3a7a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 19
      src/minidexed.cpp

@ -374,14 +374,8 @@ bool CMiniDexed::Initialize (void)
void CMiniDexed::Process (bool bPlugAndPlayUpdated) void CMiniDexed::Process (bool bPlugAndPlayUpdated)
{ {
CScheduler* const pScheduler = CScheduler::Get();
#ifndef ARM_ALLOW_MULTI_CORE #ifndef ARM_ALLOW_MULTI_CORE
bool audioBufferFilled = false; ProcessSound ();
unsigned nFrames = m_nQueueSizeFrames - m_pSoundDevice->GetQueueFramesAvail();
if (nFrames >= m_nQueueSizeFrames/2) {
ProcessSound();
audioBufferFilled = true;
}
#endif #endif
for (unsigned i = 0; i < CConfig::MaxUSBMIDIDevices; i++) for (unsigned i = 0; i < CConfig::MaxUSBMIDIDevices; i++)
@ -448,17 +442,6 @@ void CMiniDexed::Process (bool bPlugAndPlayUpdated)
{ {
m_GetChunkTimer.Dump (); m_GetChunkTimer.Dump ();
} }
if (m_pNet) {
UpdateNetwork();
}
#ifndef ARM_ALLOW_MULTI_CORE
if (audioBufferFilled) {
pScheduler->Yield();
}
#else
// On multicore, always yield at the end
pScheduler->Yield();
#endif
} }
#ifdef ARM_ALLOW_MULTI_CORE #ifdef ARM_ALLOW_MULTI_CORE

Loading…
Cancel
Save