Преглед изворни кода

Merge pull request #206 from FrankBoesing/patch-2

Bugfix re: noise when no blocks are available
dds
Paul Stoffregen пре 9 година
родитељ
комит
dbe2f4710a
1 измењених фајлова са 6 додато и 2 уклоњено
  1. +6
    -2
      output_pt8211.cpp

+ 6
- 2
output_pt8211.cpp Прегледај датотеку

* THE SOFTWARE. * THE SOFTWARE.
*/ */


//Adapted to PT8211, Frank Bösing.
//Adapted to PT8211, Frank Bösing, Ben-Rheinland


#include "output_pt8211.h" #include "output_pt8211.h"
#include "memcpy_audio.h" #include "memcpy_audio.h"
offsetR += AUDIO_BLOCK_SAMPLES / 2; offsetR += AUDIO_BLOCK_SAMPLES / 2;
#endif //defined(AUDIO_PT8211_OVERSAMPLING) #endif //defined(AUDIO_PT8211_OVERSAMPLING)
} else { } else {
memset(dest,0,AUDIO_BLOCK_SAMPLES * 2);
#if defined(AUDIO_PT8211_OVERSAMPLING)
memset(dest,0,AUDIO_BLOCK_SAMPLES*8);
#else
memset(dest,0,AUDIO_BLOCK_SAMPLES*2);
#endif
return; return;
} }



Loading…
Откажи
Сачувај