summaryrefslogtreecommitdiff
path: root/shared-module/audiocore
AgeCommit message (Collapse)Author
2019-12-13audiocore: The arguments to reset_buffer went missingJeff Epler
In conversion I missed these arguments were being passed, but noticed it when an implausible value for audio_channel was sent to mp3's reset_buffer method. It's not clear whether there was any negative impact to this, but it should be fixed!
2019-12-06audiocore: use mp_obj_t in prototypesJeff Epler
2019-12-05audiocore: restore the prototypes of audiosample_xxx functionsJeff Epler
2019-12-04audiosample: convert to use a protocolJeff Epler
This eases addition of new sample sources, since the manual virtual function dispatch functions are just calls via a protocol
2019-09-08WaveFile: Return GET_BUFFER_ERROR if wrong amount readjepler
Closes: #2128
2019-08-25disable audiomixer on boards it doesn't fit onsommersoft
2019-08-24move Mixer & MixerVoice from 'audiocore' to 'audiomixer'sommersoft
2019-08-24fix MixerVoice.get_level; now returns a float between 0-1.sommersoft
2019-08-24use a MixerVoice constructorsommersoft
2019-08-19Merge branch 'master' of https://github.com/adafruit/circuitpython into ↵sommersoft
mixer_voice
2019-08-19abandon incomplete mixer asm math functionssommersoft
2019-08-19Merge pull request #2032 from pewpew-game/audiocore-bufferDan Halbert
Allow to specify pre-allocated buffer in audicore.WaveFile
2019-08-13non-DSP 8bit & 16bit functions working.sommersoft
2019-08-03bring MixerVoice back to building state; update documentationsommersoft
2019-08-03Allow to specify pre-allocated buffer in audicore.WaveFileRadomir Dopieralski
It lets us re-use the same buffer for playing multiple files. This also allows us to control the size of the buffer. Half of the buffer will be used for the fist, and half for the second internal buffer.
2019-07-31Merge branch 'master' of https://github.com/adafruit/circuitpython into ↵sommersoft
mixer_voice
2019-07-26WavFile.h: include vfs_fat.h for pyb_file_obj_t definitionJeff Epler
Without such a definition, this header is not self-contained, but requires whoever included it to also include vfs_fat.h
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`.