Commit Graph
313 Commits
Author SHA1 Message Date
Earle F. Philhower, III 6ed2604015 Update library.json 1.9.2 2021-06-28 21:47:06 -07:00
Earle F. Philhower, III 5a5c2a88a3 Update library.properties 2021-06-28 21:46:50 -07:00
david gauchard c3c9a147c5 i2s on esp8266: fix include (#402) 2021-06-28 21:45:16 -07:00
Earle F. Philhower, III 4111404bac Update library.properties 1.9.1 2021-06-12 15:15:44 -07:00
Earle F. Philhower, III d4c09498c5 Update library.json 2021-06-12 15:15:21 -07:00
Hideaki Tai 8bf52d4c11 Fix the start of the arg “time” is not zero (#386)
In the first call of funcs[0](time), time should be zero but it was not.
2021-04-13 07:35:52 -07:00
Hideaki Tai f974af9bf3 Add AudioFileSourceFunction which can generate sound from functions (#383) 2021-04-11 18:37:38 -07:00
Hideaki Tai 9b4f36009b Fix compile error due to insufficient capacity (#384) 2021-04-11 13:57:55 -07:00
Earle F. Philhower, III 0d6e1340f0 Merge branch 'master' of https://github.com/earlephilhower/ESP8266Audio 2021-04-05 17:04:05 -07:00
Earle F. Philhower, III 8d6631e4ab Update I2S class API for RP2040 2021-04-05 17:03:34 -07:00
Earle F. Philhower, III a72bee6d73 Update README.md 2021-04-02 19:54:28 -07:00
Earle F. Philhower, III 09b1fd1788 Update library.properties 1.9.0 2021-04-02 19:43:20 -07:00
Earle F. Philhower, III b37e9d232b Add support for Raspberry Pi Pico Arduino Core
Adds support for the RP2040 core and the PIO based I2S output device.
https://github.com/earlephilhower/arduino-pico

Poisons some ARM optimizations which don't work on modern Thumbs.
2021-04-02 19:40:58 -07:00
Earle F. Philhower, III f4d4e69332 Move large OPUS locals to the heap (#374) 2021-02-24 20:50:22 -08:00
William Bérubé 714e8cf594 Adding a working implementation of a Biquad filter adapted for use with the fixed-point CPU of the ESP8266 (#370) 2021-02-13 15:32:45 -08:00
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