Add note about memory usage for MP3Decoder
This commit is contained in:
parent
816a26e8b7
commit
3d145af587
|
@ -35,7 +35,14 @@
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
|
|
||||||
//| class MP3Decoder:
|
//| class MP3Decoder:
|
||||||
//| """Load a mp3 file for audio playback"""
|
//| """Load a mp3 file for audio playback
|
||||||
|
//|
|
||||||
|
//| .. note::
|
||||||
|
//|
|
||||||
|
//| ``MP3Decoder`` uses a lot of contiguous memory, so care should be given to
|
||||||
|
//| optimizing memory usage. More information can be found here:
|
||||||
|
//| https://learn.adafruit.com/Memory-saving-tips-for-CircuitPython/reducing-memory-fragmentation
|
||||||
|
//| """
|
||||||
//|
|
//|
|
||||||
//| def __init__(self, file: typing.BinaryIO, buffer: WriteableBuffer) -> None:
|
//| def __init__(self, file: typing.BinaryIO, buffer: WriteableBuffer) -> None:
|
||||||
//|
|
//|
|
||||||
|
|
Loading…
Reference in New Issue