earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
1.99k stars 433 forks source link

AudioOutputPWM: fixed constructor for custom out-pin, added amplification #605

Open jmr-es opened 1 year ago

jmr-es commented 1 year ago

Hej Earle,
This PR adds PWMAudio to initializer list, which allows changing output pin per constructor. Furthermore I added amplification. There is a defaults-mismatch/-ambiguity regarding mono/stereo. I might take a look into it but that most likely requires some discussion..