Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
Valera edited this page Jan 5, 2018 · 1 revision

Welcome to the esp32-sound-pcm wiki!

API

Constructor

SoundProviderPcm(const SoundData *data, SoundPos length, unsigned long int frequency);

You should pass three arguments:

  1. Data - array of raw 8-bit samples. It is good idea to write it with const modifier to save it to flash.
  2. Length - length of array.
  3. Frequency - frequency in Hz. If you have no idea what it should be, try 8000 or 16000.
Clone this wiki locally