Commit graph

48 commits

Author SHA1 Message Date
2a3cc7873b buffers: Allow an allocator to be specified
This will help enable CircuitPython to use the Adafruit_MP3 library
to implement its MP3File functionality, including the creation of
multiple MP3 playback objects at the same time.

This does not intentionally change any behavior on Arduino.

Testing performed:
 * In Arduino, verified the "play_from_header" example still worked
   on a PyPortal (SAMD51)
 * In WIP CircuitPython, verified that playback (including 2 simultaneous
   mp3 files) functioned on nRF52840 Feather

# Conflicts:
#	src/buffers.c
2019-11-29 10:22:42 -06:00
3668c862fb Support "generic little endian ARM" MCUs
Hopefully all intended architectures support the smlal instruction;
this is supported on "ARM architecture v3M, and ARM architecture v4
and above except xM variants", and missing support should be caught
as an assembler error.
2019-11-29 10:22:42 -06:00
656ca5b2ff various: remove unused-but-set variables
These are treated as compile errors by CircuitPython, and we'd like
to keep it that way.
2019-11-29 10:22:27 -06:00
e9558241f1 various: include <stdint.h> for standard integer typedefs 2019-11-29 10:17:50 -06:00
25c1f2b4d2 Prepare for use of this code from CircuitPython
* Treat most files as "C" files
 * add "extern C" guards to C-ish headers
   for when they are included from C++ files
 * Make Arduino.h inclusion optional,
   not available in CircuitPython
2019-11-29 10:17:47 -06:00
siddacious
95e9974e59
Update library.properties 2019-09-25 16:02:30 -07:00
Limor "Ladyada" Fried
a0ede564a7
Merge pull request #3 from richteel/master
- Fixed issues with Teensy support - The code `NVIC_DisableIRQ(MP3_IR…
2019-09-24 20:44:55 -04:00
Limor "Ladyada" Fried
b797c40f2f
Merge branch 'master' into master 2019-09-24 17:14:45 -04:00
siddacious
be3430f4b4
Update library.properties 2019-09-13 14:41:04 -07:00
Limor "Ladyada" Fried
c97af7b2c7
Merge pull request #6 from hoffmannjan/master
added travis support
2019-08-07 11:55:20 -04:00
Jan Hoffmann
4d113f56a7 skips for unsuported arch 2019-08-07 17:36:55 +02:00
Jan Hoffmann
191bb9e9d1 added readme 2019-08-07 17:03:49 +02:00
Jan Hoffmann
e4834ed6a6 added travis 2019-08-07 17:02:53 +02:00
Jan Hoffmann
4d889556ef
Update library.properties 2019-07-10 19:33:01 +02:00
ladyada
f0f8526417 fix for some mp3 streaming hangs 2019-05-03 00:36:42 -04:00
ladyada
0407adf58c streaming bug fixes 2019-03-16 14:55:17 -04:00
ladyada
a65ca71838 a few bug fixes for streamed audio where data comes in bursts, and a large amount of re-indents 2019-03-16 14:54:42 -04:00
Richard Teel
09f62caff9 - Fixed issues with Teensy support - The code NVIC_DisableIRQ(MP3_IRQn); applies only to the feather and metro m4 but was applied to all boards which resulted in MP3\_IRQn being undefined. (Adafruit\_MP3.cpp)
- Added support for Teensy 3.5 - Added `defined(__MK64FX512__)` wherever `defined(__MK66FX1M0__)` was found
- Added/modified comments on compiler directives for Teensy boards
- Included test.mp3 sample file (58.3 KB)
- Fix applied to library and the "play_from_SD.ino" example only. *(Other examples may have the same errors so use the above notes to fix other examples if needed.)*

This release was tested with the Teensy 3.5 only. It is expected that it will work with all other supported boards. *(At least as supported as the previous version.)*
2018-10-06 13:12:45 -04:00
Limor "Ladyada" Fried
7f42556958
Merge pull request #1 from adamwolf/patch-1
Add missing VOLUME_MAX
2018-07-28 15:29:23 -07:00
Adam Wolf
a27db356bc
Add missing VOLUME_MAX 2018-07-28 15:47:48 -05:00
dean
ad5b02357d DM: update fancy player header 2018-07-24 15:49:17 -04:00
dean
df720f28ec DM: add fancy example 2018-07-24 15:47:33 -04:00
dean
0fc3946d8e DM: make DMA play from SD auto-detect mono or stereo 2018-07-24 14:50:57 -04:00
dean
be8712536a DM: fix some things and working DMA play from SD example 2018-07-24 13:02:03 -04:00
dean
33635bc731 DM: add DMA 2018-07-23 18:16:21 -04:00
dean
88c79f342a Merge branch 'master' of github.com:adafruit/Adafruit_MP3 2018-04-17 15:06:49 -04:00
dean
6c2d63ffac fix bugs 2018-04-17 15:06:42 -04:00
deanm1278
1e448b2631
Update README.md 2017-11-14 12:58:36 -05:00
dean
fff3ef862c DM: bump version 2017-11-14 12:52:15 -05:00
dean
f236eb5c80 DM: added teensy 3.2 support 2017-11-14 12:51:42 -05:00
dean
2d08388a78 DM: nrf52 working but maybe not fast enough 2017-11-13 18:18:54 -05:00
dean
69f7b9db0c DM: update library.properties 2017-11-09 16:40:27 -05:00
dean
aaba603046 DM: deleted unused file 2017-11-09 16:18:24 -05:00
dean
8e13b279a4 DM: add adjustable volume control to sd example 2017-11-09 15:15:16 -05:00
dean
b65daf6742 DM: fix play from header example for teensy as well 2017-11-06 16:51:27 -05:00
dean
e7f46ada2c DM: ported to teensy 3.6, squish warnings 2017-11-06 16:39:43 -05:00
dean
4fb666105c Merge branch 'master' of github.com:adafruit/Adafruit_MP3 2017-11-06 15:17:56 -05:00
dean
215724ca98 DM: should skip id3 tags 2017-11-06 15:17:35 -05:00
ladyada
799d0c7fbe update readme, remove stray chars 2017-11-03 20:43:34 -04:00
ladyada
80727f1df8 update name and fix up examples a tad 2017-11-03 20:39:25 -04:00
deanm1278
65c576ca35
Create README.md 2017-11-03 12:49:41 -04:00
dean
a589db331e DM: added stop, pause functions, documentation 2017-11-03 12:47:17 -04:00
dean
a4442c0323 DM: working w/ current core, 12 bit dac 2017-11-03 11:46:34 -04:00
dean
f84c1be4f8 DM: added play from SD example 2017-10-30 18:06:55 -04:00
dean
f76a1daf70 DM: make cpp files 2017-10-30 15:43:45 -04:00
dean
66c9dc05e6 DM: working now 2017-10-30 15:28:24 -04:00
dean
01b0c97e91 DM: less dumb memmoves, bigger buffers 2017-10-27 18:01:16 -04:00
dean
7b353850b4 first commit 2017-10-27 17:34:32 -04:00