Commit Graph
248 Commits
Author SHA1 Message Date
david gauchard 6ecb6afe30 API to force HTTPv1.0 allowing streaming clean data from some servers (#363) 2021-01-27 16:27:04 -08:00
Earle F. Philhower, III 4994de7cb7 Revert "Work around Arduino-Builder bug causing ESP8266 build fail (#358)" (#365)
This reverts commit b832ec2434.

Arduino-CLI has fixed a bug in their code, attempt to run nightly builds in CI again.
2021-01-27 16:26:44 -08:00
Earle F. Philhower, III 3e3bc35493 Add arduino-lint CI check (#360)
* Add arduino-lint CI check

* Fix linting warnings
1.8.1
2021-01-14 15:15:17 -08:00
david gauchard 3349608b11 StreamOnHost: play audio on host (#359)
* StreamOnHost: actually play audio

* (spaces)

* fix comment

* update message
2021-01-08 07:41:03 -08:00
Earle F. Philhower, III 40d0d997a8 Release 1.8
Ensure the ICY decoder fixes make their way out.
1.8.0
2021-01-03 09:49:35 -08:00
david gauchard 0cee4d410e Proposal for various tiny fixes (#357)
* replace a disappeared shoutcast url by a working one from another example

* increase a buffer size (found by valgrind)

* make emulated example closer to the not emulated one
use `./onHost diff` to show the diff -u

* add `diff` option to onHost script

* add a delay to local copy of AudioOutputNull

* increase another buffer size

* make AudioOutputNullSlow.h compatible with arduino api (not only emulation on host)
2021-01-02 15:09:01 -08:00
Earle F. Philhower, III b832ec2434 Work around Arduino-Builder bug causing ESP8266 build fail (#358)
Thanks to @d-a-v for the debug!
2021-01-02 11:02:07 -08:00
Earle F. Philhower, III 7cb02a6986 Ensure only 1 ICY packet processed per reading (#356)
Thanks to @cjwhoishe, fixes #355 .

When a large enough read size was requested it is possible that for some
streams multiple ICY blocks could appear.  The logic doesn't support
that, so only read up to 1/2 the ICY block interval to ensure there is
no way to see two ICY blocks in one readInternal call.
2020-12-29 08:42:08 -08:00
david gauchard 435e2cf028 Fix for esp8266 I2S/NoDAC (#344)
* esp8266: Allows I2S-NoDAC to use only I2S-out-data GPIO
avoiding conflicts with repurposed GPIO, especially conflicting with SDFS.

* +message

* new upstream API update

* check i2s_begin's return value
2020-12-11 16:46:07 -08:00
Earle F. Philhower, III dd8ac07e4e Remove ID3 signedness warning 2020-12-08 10:29:35 -08:00
Earle F. Philhower, III e65cc0fab0 Remove assert() redefinition warnings 2020-12-08 10:25:27 -08:00
Martin-LaclaustraandMartin-Laclaustra 1c548c8846 Fixes for the ULP driver (#340)
* Fix the order of mono samples (each pair was swapped)

* Remove comment on version and date (currently tracked within ESP8266Audio repo)

* Added some usage instructions to the header file

* Delete sample in buffer after being rendered (ULP) to avoid sound looping in the buffer at the end of playback

Co-authored-by: Martin-Laclaustra <Martin-Laclaustra@github.com>
2020-11-23 12:30:56 -08:00
Pierre-Loup MandPierre-Loup Martin 2dc245ff2e Fix tags framesize endless loop, add add'l tag support (#336)
* Modified AudioFileSourceFS.h to add resolution operator on items defined into the fs namespace in esp32 libraries.

* Added track, set, popularimeter, compilation tags.
Changed framesize loop with 32bit counter to avoid endless loops for large frames (like APIC).

Co-authored-by: Pierre-Loup Martin <lelabodutroisieme@gmail.com>
2020-11-16 10:02:57 -08:00
Pierre-Loup MandPierre-Loup Martin 7f3908c239 Modified AudioFileSourceFS.h to add resolution operator on items defined into the fs namespace in esp32 libraries. (#335)
Co-authored-by: Pierre-Loup Martin <lelabodutroisieme@gmail.com>
2020-11-15 10:20:21 -08:00
Adamcbrz 299db3d03d Modify AudioOutputI2S to initialize i2s during begin (#331)
Fixes #330
2020-11-14 11:02:48 -08:00
Earle F. Philhower, III 0c4c9e1637 Update to release 1.7.0 (#333) 1.7.0 2020-11-14 10:40:16 -08:00
Earle F. Philhower, III 1c7a2f7cb5 Add output via the ULP for the ESP32 (#326)
Code courtesy of Martin Laclaustra.

Uses the ULP coprocessor on the ESP32 to send samples to the onboard
DACs, freeing the I2S port for other uses.

Connect left output to pin 25, right to pin 26.
2020-11-01 14:02:59 -08:00
piebrain bbd8748f86 Reset errors and avoid memory leak (#321)
When reusing the AudioGeneratorMP3 object to play multiple files with errors, the error count was never reset.
Also, if 3 errors are encountered, it would stop running but never clean up the buffers.
2020-10-26 18:54:37 -07:00
Earle F. Philhower, III 299833dbf9 Update to release 1.6 1.6 2020-10-25 17:30:20 -07:00
Earle F. Philhower, III 90258c566a Fix HTTP redirects with latest releases on ESP8266 (#319) 2020-10-25 17:29:12 -07:00
Parker Link 0ec3bc3b31 Fix the dependencies in the library's PIO config (#318)
PlatformIO requires these dependencies to be explicitly mentioned. Please check the version numbers of the libraries specified are correct. However, v1.0 for each allows for successful builds. Thanks!
2020-10-25 15:09:00 -07:00
david gauchard 2fb8d887b1 Fixes when seeking in an MP3 file (#303)
* separate malloc structures

* add desync() for user when randomly seeking in the input file
fix corner cases leading to exceptions when seeking

* additional test when trying to crash-shake everything
with a rotary encoder seeking into the currently played file

* use private instead of static

* remove temporary debug code
2020-09-06 11:41:45 -07:00
Earle F. Philhower, III 93a540da9b Add FLAC host test (#302) 2020-09-03 08:37:15 -07:00
david gauchard 1c51669729 test/run on host, output to null device (#299)
* test/run on host to null device

* compilation fix
2020-08-30 15:07:11 -07:00
Gianni Ceccarelli 96d036087b Fix memory loading (#300) 2020-08-28 12:51:12 -07:00
Earle F. Philhower, III cd42e28ca5 Release 1.5.1 (#298)
Bugfixes to AAC and Opus codec addition
1.5.1
2020-08-16 11:59:47 -07:00
Earle F. Philhower, III cdf71d6bcf Fix AAC mono decode (#297)
As noted by Marc Madaule (thanks!), the mono AAC decode was not
functioning properly.  Adjust the output stuff loop to fix.
2020-08-15 21:05:12 -07:00
Earle F. Philhower, III 197b7fe794 Fix seek behavior in Opus, STDIO (#296) 2020-08-12 16:59:03 -07:00
Earle F. Philhower, III a0a06a9832 Reduce OpusFile RAM by only allowing mono/stereo (#295) 2020-08-11 22:04:41 -07:00
Earle F. Philhower, III fae26d4010 Add Opus file format (and OGG demux) (#294)
Add ported versions of the Opus codec, OpusFile parser, and OGG demuxer
from Xiph.org.

Only works on the ESP32 due to memory limitations (of opusfile,
strangely enough, and not because of opus compression).

Adds a basic example and a host test.

Fixes #278
2020-08-11 20:56:13 -07:00
Earle F. Philhower, III 7c379748b1 Use semantic version x.y.z (#293) 1.5.0 2020-08-10 08:52:17 -07:00
Earle F. Philhower, III 1101b110f9 Update to release 1.5 because of several bug fixes (#292) 2020-08-09 19:12:21 -07:00
Earle F. Philhower, III 0266d9af14 Fix missed merge in MIDI notegen (#291)
Patch 21c07c0bcd702e7adf3db349ac926914b98d17ce was applied to the TSF's
original code, but not to the fixed-point generator used by the ESP8266.
Apply it to the FP unit as well.

Spotted by Marc Madaule
2020-08-09 19:08:56 -07:00
Earle F. Philhower, III 0d1d849f91 Fix factor-of-2-off MIDI velocity parsing (#290)
Velocity in the MIDI format goes from 1...127, so scale the volume of
the note generator by /128 instead of /256.   Increases volume of all
notes by 2x linearly (3dB).

Found by Marc Madaule
2020-08-09 19:01:16 -07:00
Earle F. Philhower, III 87742f502c Update pr-or-master-push.yml 2020-08-09 11:32:02 -07:00
Earle F. Philhower, III 05839052fb Add FatFS file source (#289)
Thanks to Marc Madaule for the patch adding FatFS for the ESP32 as a
file source.
2020-08-09 11:21:45 -07:00
Earle F. Philhower, III f8d5ccf7d0 Add ESP32 build, break out ESP8266 install for CI (#288)
Re-enable ESP32 builds in CI

Fix examples which do not compile on ESP32
2020-08-08 16:40:21 -07:00
Earle F. Philhower, III 0f40d83241 Use GitHub CI to run tests (#287) 2020-08-08 15:36:06 -07:00
Earle F. Philhower, III 33494596a4 Fix OOB read on fast sample generation in MIDI
Valgrind identified cases where the chunk read position came out to be
-1, which was causing a read of memory before the actual cache buffers.
This could result in add'l noise on playback.
2020-08-07 21:49:39 -07:00
Earle F. Philhower, III 9c654e55cb Fix MIDI test app from double-fclose()ing FILE 2020-08-07 21:40:55 -07:00
Earle F. Philhower, III fe21f08e99 Clear running state var in MIDI constructor 2020-08-07 21:32:32 -07:00
Earle F. Philhower, III c5f0930b03 Add MIDI host test w/valgrind
Valgrind detects an error in TSF.h, not yet fixed.  This could be
causing issues on the ESP32.
2020-08-07 21:28:13 -07:00
Earle F. Philhower, III d37010e5d7 Add Mini-Wecker project 2020-08-03 12:55:57 -07:00
Earle F. Philhower, III 7bb251102e Only follow HTTP redirects on ESP8266
ESP32 doesn't have the redirect following capability, don't try and turn it on.
2020-07-29 07:48:27 -07:00
jaenek a1737e7842 Follow redirects (#276) 2020-07-28 17:18:01 -07:00
Felix Eckhardt e59319f605 added missing DMA buffer flush, see issue #270 for details (#271) 2020-05-21 13:16:34 -07:00
Earle F. Philhower, III e0d413622c Add Talkie (TI speech synthesizer) support (#269)
Rewrite https://github.com/going-digital/Talkie to work in the
ESP8266Audio framework.  Allows sync and async speech.

Add a very annoying talking clock example.
2020-05-13 20:16:48 -07:00
Earle F. Philhower, III b7cb0ee8e2 Redo the last packet handling of the MP3 decoder (#266)
Keep track of how many values are actually good in the buffer (before it
was always guaranteed to be the full size) and when EOF is detected,
only shift out valid, good bytes, and return STOP when the unused bytes
are 0 or unchanged from the last pass.

Fixes #265
2020-05-11 02:09:05 -07:00
geoffday67 1fde10daa0 Wait after reading MP3 file for final frames (#263) 2020-04-26 10:07:13 -07:00
david gauchard 1ca965b474 (WIP) updates for c++17 - opened for discussion (#249)
* updates for c++17

* picked upstream fix on Earle's advice
https://github.com/schellingb/TinySoundFont/blob/21c07c0bcd702e7adf3db349ac926914b98d17ce/tsf.h#L829-L839
(simplified PR)

* remove `register`
2020-04-16 15:38:14 -07:00