bitluni / ULPSoundESP32

176 stars 26 forks source link

New version in line with the Wavetable Editor #6

Open nygma2004 opened 3 years ago

nygma2004 commented 3 years ago

Hi bitluni,

Thanks a lot for this driver. I tried using it and I noticed that your Wavetable editor creates the .h file in a different format as what is in the Mono.ino. It also creates a structure which probably is defined elsewhere in the newer version of your program. Do you have an updated example which works with the current Wavetable version? I would like to use it like the way you are probably using it, so the ESP plays very short clips when something happens, and not continuously. If I comment out these lines in the fillSamples method, I can disable the loop playback, right?

    if(lastFilledWord == totalSampleWords)
      lastFilledWord = 0;

Also, can you advice on how I can modify this to only play different sounds on request?

Thanks a lot, Csongor