circuitpython/shared-module/audiomp3
Jeff Epler 1cdac3f16a MP3File: Fix stereo playback on samd AudioOut
There were several problems with the way this worked -- the read_count
approach was too complicated and I made a mistake "simplifying" it from
WaveFile.  And when the right channel was returned, it was off by 1 byte,
making it into static.

Instead, directly track which is the "other" channel that has data
available, and by using the right data type make the "+ channel"
arithmetic give the right result.

This requires a double cast (int16_t*)(void*) due to an alignment warning;
the alignment is now ensured manually, but the compiler doesn't make the
necessary inference that the low address bit must be clear.
2019-12-12 08:44:15 -06:00
..
__init__.c audiocore: Add MP3File using Adafruit_MP3 library 2019-12-10 14:03:06 -06:00
__init__.h audiocore: Add MP3File using Adafruit_MP3 library 2019-12-10 14:03:06 -06:00
MP3File.c MP3File: Fix stereo playback on samd AudioOut 2019-12-12 08:44:15 -06:00
MP3File.h MP3File: Fix stereo playback on samd AudioOut 2019-12-12 08:44:15 -06:00