more i2s/bt drain buffer size tweaks

custom
jacqueline 1 year ago
parent 26df5c4a7f
commit cb0c42060b
  1. 4
      src/audio/audio_fsm.cpp

@ -199,11 +199,11 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) {
sServices = ev.services; sServices = ev.services;
constexpr size_t kDrainBufferSize = constexpr size_t kDrainBufferSize =
drivers::kI2SBufferLengthFrames * sizeof(sample::Sample) * 8; drivers::kI2SBufferLengthFrames * sizeof(sample::Sample) * 2 * 8;
ESP_LOGI(kTag, "allocating drain buffer, size %u KiB", ESP_LOGI(kTag, "allocating drain buffer, size %u KiB",
kDrainBufferSize / 1024); kDrainBufferSize / 1024);
StreamBufferHandle_t stream = xStreamBufferCreateWithCaps( StreamBufferHandle_t stream = xStreamBufferCreateWithCaps(
kDrainBufferSize, sizeof(sample::Sample) * 2, MALLOC_CAP_DMA); kDrainBufferSize, sizeof(sample::Sample), MALLOC_CAP_DMA);
sFileSource.reset( sFileSource.reset(
new FatfsAudioInput(sServices->tag_parser(), sServices->bg_worker())); new FatfsAudioInput(sServices->tag_parser(), sServices->bg_worker()));

Loading…
Cancel
Save