diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-12-10 13:55:25 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-10 13:55:25 -0800 |
| commit | 024ba978ec909d39d411a74b443d2ffa20250fa6 (patch) | |
| tree | 49173f5aee00bffed722c437f3b6361e485aedde /py/circuitpy_defns.mk | |
| parent | 387ab6c87eac8481934a7ffc4a96395fe5f34747 (diff) | |
| parent | a08d9e6d8e0059c8aa59feadd7b94d95d691e273 (diff) | |
Merge pull request #2337 from jepler/mp35.0.0-beta.1
Add MP3 playback
Diffstat (limited to 'py/circuitpy_defns.mk')
| -rw-r--r-- | py/circuitpy_defns.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 211e85368..446620d27 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -117,6 +117,9 @@ endif ifeq ($(CIRCUITPY_AUDIOMIXER),1) SRC_PATTERNS += audiomixer/% endif +ifeq ($(CIRCUITPY_AUDIOMP3),1) +SRC_PATTERNS += audiomp3/% +endif ifeq ($(CIRCUITPY_BITBANGIO),1) SRC_PATTERNS += bitbangio/% endif @@ -319,6 +322,8 @@ SRC_SHARED_MODULE_ALL = \ audiomixer/__init__.c \ audiomixer/Mixer.c \ audiomixer/MixerVoice.c \ + audiomp3/__init__.c \ + audiomp3/MP3File.c \ bitbangio/I2C.c \ bitbangio/OneWire.c \ bitbangio/SPI.c \ @@ -371,6 +376,26 @@ SRC_SHARED_MODULE_ALL += \ touchio/TouchIn.c \ touchio/__init__.c endif +ifeq ($(CIRCUITPY_AUDIOMP3),1) +SRC_MOD += $(addprefix lib/mp3/src/, \ + bitstream.c \ + buffers.c \ + dct32.c \ + dequant.c \ + dqchan.c \ + huffman.c \ + hufftabs.c \ + imdct.c \ + mp3dec.c \ + mp3tabs.c \ + polyphase.c \ + scalfact.c \ + stproc.c \ + subband.c \ + trigtabs.c \ +) +$(BUILD)/lib/mp3/src/buffers.o: CFLAGS += -include "py/misc.h" -D'MPDEC_ALLOCATOR(x)=m_malloc(x,0)' -D'MPDEC_FREE(x)=m_free(x)' +endif # All possible sources are listed here, and are filtered by SRC_PATTERNS. SRC_SHARED_MODULE_INTERNAL = \ |
