Commit Graph
374 Commits
Author SHA1 Message Date
Nils UliczkaandEarle F. Philhower, III b63c28449e Tell AudioOutputMixer the rate for the next sample (#129)
* Tell the mixer at which rate to consume the next sample
* Update SetRate method to include id parameter
* Refactor SetRate to minimize redundant updates
Optimize rate setting to avoid unnecessary calls.
* Add newHz and lastHz variables to AudioOutputMixer
---------
Co-authored-by: Earle F. Philhower, III <earlephilhower@yahoo.com>
2025-10-08 14:50:47 -07:00
Earle F. Philhower, III 297943c8a8 Update version 2.1.0 2025-10-08 10:46:52 -07:00
Earle F. Philhower, III d9e1ea710b Don't set I2S rate unless it's different (#771)
On the ESP32 it seems the i2s clock set will cause a hiccup, even
if it's setting the exact same clock as before.

Avoid it by only setting the I2S clock if it differs from the last set.
Initialize it to 0hz to ensure the first setRate call always works.

Supercedes #656
2025-10-08 10:36:16 -07:00
Earle F. Philhower, III a3e6f97862 Add auto-release GH action 2025-10-08 10:07:53 -07:00
Earle F. Philhower, III 069945007d Pin GH actions to SHA (#770) 2025-10-08 09:28:03 -07:00
Earle F. Philhower, IIIandCopilot Autofix powered by AI 402278ab11 Potential fix for code scanning alert no. 9: Array offset used before range check (#769)
Very minor fix for damaged SoundFont files.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-10-08 09:21:26 -07:00
Earle F. Philhower, III b09bad5b9c Fix stale acction warnings 2025-10-08 09:11:53 -07:00
Earle F. Philhower, III acc4dc426d Add CodeQL GH action (#768) 2025-10-08 09:05:51 -07:00
Jason2866 efcb98a2cd ESP32-S3 has no DAC (#490) 2025-10-08 08:46:29 -07:00
Earle F. Philhower, III 18796abb1e Up GH action operations 2025-10-08 08:28:51 -07:00
Earle F. Philhower, III df171f5657 Add stale issue tracker GH action (#766) 2025-10-08 08:26:34 -07:00
Earle F. Philhower, III 41309312d7 Remove error when ULP included on 8266/Pico (#767)
Fixes #760
2025-10-08 08:25:30 -07:00
Earle F. Philhower, III 39188b81d6 Scan MP3 for header, avoid multiple burst errors (#764)
MP3 comes in chunks of encoded data started by a header sequence.
Scan for it in the decoder and only pass in data that starts with
this header to avoid the burst errors

Avoids a avalanche of `lost synchronization` error reports when there
is a file error.

Also enable additional sketches on the RP2040/RP2350
2025-10-07 23:22:54 -07:00
Earle F. Philhower, III ae685b19e9 Use arduino-cli to build examples, avoid bitrot (#765)
The CI internals for all cores seem to change a lot, so don't rely
on them to build tests here.  Instead, run arduino-cli to build a sketch.
2025-10-07 20:26:11 -07:00
frak0d 9dee3010c1 Added internal DAC support via DMA (#744) 2025-04-18 09:45:24 -07:00
Earle F. Philhower, III a852767b6f Speed up AAC decode by ~20% on Pico/ESP32 (#742)
Import the optimized (well...de-un-optimized) version of libhelix from
BackgroundAudio for about a 20% speedup on the Pico for AAC decode.
2025-04-12 10:25:55 -07:00
Earle F. Philhower, III 88a82209fd Remove ESP32 NDEBUG redefinition warnings (#741) 2025-04-11 12:16:20 -07:00
Earle F. Philhower, III f9e72dbb21 Add style check matching RP2040 core (#740)
Will let us backport the BackgroundAudio patches to libhelix easier and clean
up some ugly formatting we've let develop.
2025-04-11 12:09:49 -07:00
Earle F. Philhower, III 62dd23a74a Bring back ESP8266 Arduino CI (#739)
No idea how it started failing, the 8266 repo is dead and shouldn't be changing...
2025-04-10 15:06:19 -07:00
Nils Schimmelmann b589145da3 Add support for MIPS architecture (#738) 2025-04-08 10:13:40 -07:00
Earle F. Philhower, III 7e2b839f21 Update README.md 2025-01-22 13:33:31 -08:00
Earle F. Philhower, III 3044568f85 Update version 2.0.0 2024-12-31 10:30:46 -08:00
Earle F. Philhower, III 8adeb31d20 Automate version bumps, avoid manual mistakes (#725) 2024-12-31 10:30:06 -08:00
Kurt Haenenandkurt.haenen b0a06edde2 Fixing crash on MP3 playback on ESP8266. (#723)
Co-authored-by: kurt.haenen <kurt.haenen@quintux.com>
2024-12-25 13:19:16 -08:00
Earle F. Philhower, III cdd07c92c2 Only block tsf.h on Xtensa ESP32, not RISCV (#722)
Fixes #721
2024-12-19 14:33:24 -08:00
Earle F. Philhower, III aafabf2367 Ensure MP3 can safely exit on OOM (#716)
Fixes #715.  Good catch, @EternityForest
2024-12-19 09:33:01 -08:00
Earle F. Philhower, III 90b83fb95e Update README.md 2024-12-18 15:11:36 -08:00
Earle F. Philhower, III fbe69b8cd8 Fix AAC HR decode on RP2040
U64 big/little endian mismatch for ARM cores.  Remove the whole PowerPC support option as there aren't any commerically significant PPC embedded systems still being developed.
2024-12-18 14:39:07 -08:00
Earle F. Philhower, III 2f43b3b57d Update README.md 2024-10-14 17:48:14 -07:00
Earle F. Philhower, III 0e5870a440 Update library.properties
dot_a_linkage seems to cause issues with CI
2024-10-08 18:24:41 -07:00
Earle F. Philhower, III 7e50a43b4b Update README.md 2024-10-08 18:13:22 -07:00
Earle F. Philhower, III 1278b10717 Update library.properties 2024-10-08 17:51:13 -07:00
Roman Lut 52c49afbc0 NoDAC and PDM documentation update for ESP32 (#519) 2024-10-08 17:49:03 -07:00
TorrenteroandEdgar d32d8b4cc8 Performance improvement: ~13% faster on ESP32 and ~21% faster on ESP8266 (empirically tested) (#554)
* Performance improvement
- new tsf_note_on_fast returning playIndex and removing lowpass filter setup since it is not being processed in tsf_voice_render_fast anyway but is consuming a lot of cpu
- new tsf_note_off_fast using playIndex to stop voices faster
- Removing lowpass filter setup from tsf_voice_render_fast since it is not being processed
- Math tweaks trying to avoid complex math operations (specially conversions) at voice render stage
- Precalculating *F32P32 values to avoid doing them at voice render stage
* Fixing data type
* Initializing play indexes
---------
Co-authored-by: Edgar <edgar.coria@xema.tech>
2024-10-08 17:45:57 -07:00
Earle F. Philhower, III 235bcb12de Fix UTF-8 warning in RCSL doc 2024-10-08 13:59:49 -07:00
Earle F. Philhower, III a4a974363d Update Arduino Lint GH Action 2024-10-08 13:56:03 -07:00
jmr-esandRASMUSSEN Joern 96dc79c9fa AudioOutputPWM: added amplification (#605)
Co-authored-by: RASMUSSEN Joern <joern.rasmussen-ext@hexagon.com>
2024-10-08 13:50:43 -07:00
Piotr Gaczkowski 50bc3f7279 Add MCLK support for RP2040 (#707) 2024-10-06 16:54:01 -07:00
Earle F. Philhower, III 79208f6701 Fix GCC14-detected warnings (#711)
* Fix pedantic GCC14 warnings on calloc order
* Ensure AAC read-in doesn't overflow internal structures when the file is corrupted/illegal.
2024-10-06 16:53:22 -07:00
Earle F. Philhower, III a0a4a00757 Fix release numbering 1.9.9 2024-09-21 09:26:24 -07:00
Earle F. Philhower, III c93201483f Update pr-or-master-push.yml (#687) 1.9.8 2024-06-06 14:59:31 -07:00
Earle F. Philhower, III a6141473fb Update for ESP32 Arduino 3.x (#685)
Implement the renamed network client and other API changes when built
under the 3.x branch of the Arduino ESP32 core.

Disable building TSF on the ESP32, the Xtensa G++ backend bug is still there.

Minimal changes to get I2S to build under new IDF.  Deprecated but
not removed, so warnings are expected but should not be fatal in
use.

Fixes #683
2024-06-06 14:43:45 -07:00
ChuckMash b837e7d36a Stop output on OOM in MP3 (#658) 2024-04-25 17:53:07 -07:00
Infinity 51a584c2b7 Update AudioGeneratorRTTTL.cpp for dotted length (#668) 2024-04-25 17:51:42 -07:00
Earle F. Philhower, III 492a5beba4 Update GH CI actions to latest (#681) 2024-04-17 10:22:17 -07:00
Earle F. Philhower, III 89a5a07712 Get ESP32 CI builds working again (#680) 2024-04-17 10:11:03 -07:00
Earle F. Philhower, III b3c41668a2 Fix GCC12.3 new warnings for RP2040 (#679)
* Fix GCC12.3 new warnings for RP2040

* Remove OPUS encoder, not supported on embedded
2024-04-16 16:32:16 -07:00
Earle F. Philhower, III 139fba4116 Update opusfile.c (#678) 2024-04-16 15:14:14 -07:00
Earle F. Philhower, III b7d89058dd Update polyphase.c 2024-04-16 15:11:31 -07:00
Earle F. Philhower, III e306df208c Update AudioOutputSPDIF.h 2024-04-16 15:10:49 -07:00