Skip to content

Rawwaves from Files

Phil Schatzmann edited this page Sep 9, 2022 · 12 revisions

This library uses some prerecorded sounds that can be found in the rawwaves directory.

By default these sounds are loaded from progmem and there is no need for any files. You can however still use the file based approach e.g. on an ESP32:

  • Make sure that files are stored on SD in the /rawwaves directory
  • In ArdConfig.h make sure that we used #define STK_USE_FILES. In PlatformIO this can be handled more elegantly!
  • Initialize SDMMC in the setup()
  if(!SD_MMC.begin("/sdcard", true)){    // 1-bit mode
    LOGE("Could not open SD_MMC");
    return;
  }
  • Double check that the generated file names are prefixed by "/sdcard/rawwaves/"
  • If you use an AudioKit: all switches must be switched on
Clone this wiki locally