diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-07-24 20:57:32 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-07-25 06:44:26 -0500 |
| commit | 6b44e40ee8dba415213468afe14f7202b42ec429 (patch) | |
| tree | 95145620819766182bbf8810884f024d5521d7c5 /py/circuitpy_defns.mk | |
| parent | f39a6f40fdf3dfcd54ff3142255155f76da18016 (diff) | |
audiocore: Factor from audioio
When nrf pwm audio is introduced, it will be called `audiopwmio`. To
enable code sharing with the existing (dac-based) `audioio`, factor
the sample and mixer types to `audiocore`.
INCOMPATIBLE CHANGE: Now, `Mixer`, `RawSample` and `WaveFile` must
be imported from `audiocore`, not `audioio`.
Diffstat (limited to 'py/circuitpy_defns.mk')
| -rw-r--r-- | py/circuitpy_defns.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 93ca4deb9..bdefc18cc 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -108,6 +108,9 @@ endif ifeq ($(CIRCUITPY_AUDIOIO),1) SRC_PATTERNS += audioio/% endif +ifeq ($(CIRCUITPY_AUDIOCORE),1) +SRC_PATTERNS += audiocore/% +endif ifeq ($(CIRCUITPY_BITBANGIO),1) SRC_PATTERNS += bitbangio/% endif @@ -301,9 +304,10 @@ $(filter $(SRC_PATTERNS), \ _stage/Text.c \ _stage/__init__.c \ audioio/__init__.c \ - audioio/Mixer.c \ - audioio/RawSample.c \ - audioio/WaveFile.c \ + audiocore/__init__.c \ + audiocore/Mixer.c \ + audiocore/RawSample.c \ + audiocore/WaveFile.c \ bitbangio/I2C.c \ bitbangio/OneWire.c \ bitbangio/SPI.c \ |
