summaryrefslogtreecommitdiff
path: root/shared-bindings/audioio
AgeCommit message (Collapse)Author
2020-08-07Modify some Python stubsTaku Fukada
2020-07-27Fix several type hintsTaku Fukada
2020-07-17Merge branch 'main' into type_hintsdherrada
2020-07-08audioio: Remove compatibility codeJeff Epler
These items were aliased from audiocore to audioio for compatibility with 4.x, but according to our deprecation schedule can be removed in 6.0.
2020-07-03Made every init return Nonedherrada
2020-07-02Made suggested changesdherrada
2020-07-02Added type hints to audioiodherrada
2020-05-27Various doc examples: Fix the "/ 18" copypasta bugJeff Epler
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-04-30Did audioio, audiomixer, audiomp3dherrada
2020-04-28Fixed some more whitespacedherrada
2020-04-27Added inline pyi to audiocoredherrada
2020-03-05rename routines to be clearer; fix wiznet arg typesDan Halbert
2020-02-28new pin validation routines; don't use mp_const_none if NULL will doDan Halbert
2019-10-27audioio: correct trivial typoJeff Epler
2019-08-31enable Mixer backwards compatibility (when audiomixer is available)sommersoft
2019-08-29eval the expression vs [un]definedsommersoft
2019-08-25docs: correct audiomixer refssommersoft
2019-08-24move Mixer & MixerVoice from 'audiocore' to 'audiomixer'sommersoft
2019-08-17audioio: By default, be compatible with 4.xJeff Epler
Testing performed: That the shipped .mpy files on a PyPortal (CP 4.x) still work (play audio) with this branch, instead of erroring because `WaveFile` can't be found in `audioio`. Flash usage grew by 28 bytes. (I expected 24, there must be some other effect on size/alignment that I didn't predict)
2019-07-26docs: An `audiocore.Mixer` suffices where another audio source wouldJeff Epler
2019-07-26docs: corrections that stem from the "audiocore" renameJeff Epler
2019-07-25Remove unneeded headersScott Shawcroft
2019-07-25audiocore: Factor from audioioJeff Epler
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`.
2019-06-12Refactor deinit check to reduce code size.Scott Shawcroft
2019-05-30Improve rST consistency for rst2pyi useScott Shawcroft
2019-01-14Add subclass support to displayio.Scott Shawcroft
Also, swap make_news to accept a kwarg map and refine param checking. Fixes #1237
2018-12-03Fix arg type for AudioOut(..., quiescent_value=...)Dan Halbert
2018-11-05in doc string as wellcaternuson
2018-11-05change channels to channel_countcaternuson
2018-10-31add channels and bits_per_sample to audioio.WaveFilecaternuson
2018-10-17Tweaks from feedback:Scott Shawcroft
* default_value is now quiescent_value * Use step = -step format for sign switch * Add note about analogout_reset being empty
2018-10-16Ramp values to and from a default value while active.Scott Shawcroft
This reduces the popping sound on initial playback of an audio sample. The M4 DAC has a pop on startup that cannot be prevented. It also does not allow readback so current values of the DAC are ignored. Fixes #1090
2018-10-09Rename stop to stop_voice in case we want stop to stop everything later.Scott Shawcroft
2018-10-05Fix doc buildScott Shawcroft
2018-10-05Introduce audioio.Mixer which can mix multiple audio samplesScott Shawcroft
to produce a single sample. Only works with 16 bit samples on the M4. Fixes #987
2018-08-07Support internationalisation.Scott Shawcroft
2018-07-13compiles and runs; hangs on import storage;storage.VfsFat.<tab>Dan Halbert
2018-06-29Fixed issue with code in docs for audioioKattni Rembor
Removed incorrect arg from RawSample in AudioOut example code. Replaced variable sample with dac.
2018-05-19fix doc error in audioOut.cjerryneedell
fixes #851
2018-05-08Make resume idempotent (allowing you to call it twice without complaining.)Scott Shawcroft
2018-05-08Tweak exception message.Scott Shawcroft
2018-05-08Add pause/resume control to AudioOut and I2SOutScott Shawcroft
Fixes #808
2018-04-13Tweaks based on dhalbert's feedback.Scott Shawcroft
2018-04-12Add audio output support!Scott Shawcroft
This evolves the API from 2.x (and breaks it). Playback devices are now separate from the samples themselves. This allows for greater playback flexibility. Two sample sources are audioio.RawSample and audioio.WaveFile. They can both be mono or stereo. They can be output to audioio.AudioOut or audiobusio.I2SOut. Internally, the dma tracking has changed from a TC counting block transfers to an interrupt generated by the block event sent to the EVSYS. This reduces the overhead of each DMA transfer so multiple can occure without using up TCs. Fixes #652. Fixes #522. Huge progress on #263
2018-02-14Merge pull request #600 from tannewt/clarify_property_commentsKattni
Clarify style of attribute comments in the Design Guide.
2018-02-07Clarify style of attribute comments in the Design Guide.Scott Shawcroft
And update the core attributes to match the style.
2018-02-06shared-bindings: Fix incorrect code commentsarturo182
Most likely caused by copy-paste.
2017-10-03Do not allow a *io object to be used after deinit().Dan Halbert
Fixes #278, #277, #276, #275.
2017-08-25Initial merge of micropython v1.9.2 into circuitpython 2.0.0 (in ↵Dan Halbert
development) master. cpx build compiles and loads and works in repl; test suite not run yet esp8266 not tested yet