summaryrefslogtreecommitdiff
path: root/shared-module/audiomp3/MP3Decoder.h
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2020-07-17 15:46:03 -0500
committerGitHub <noreply@github.com>2020-07-17 15:46:03 -0500
commit9cdf5e148a8fcc506da6e2a8598fa2963bbcde2e (patch)
tree94e78e5b79471e36d44b33b1f471ac196ce018c0 /shared-module/audiomp3/MP3Decoder.h
parent88d89563783771daba2973eb8dc3faa237ba4b62 (diff)
parent98eef79faaa36adbdd0b074c712aad5df7ef37a0 (diff)
Merge pull request #2879 from jepler/background-callback
Use a linked list of background tasks to perform
Diffstat (limited to 'shared-module/audiomp3/MP3Decoder.h')
-rw-r--r--shared-module/audiomp3/MP3Decoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/audiomp3/MP3Decoder.h b/shared-module/audiomp3/MP3Decoder.h
index 9ee1d0949..f91f102a2 100644
--- a/shared-module/audiomp3/MP3Decoder.h
+++ b/shared-module/audiomp3/MP3Decoder.h
@@ -28,6 +28,7 @@
#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_MP3FILE_H
#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_MP3FILE_H
+#include "supervisor/background_callback.h"
#include "extmod/vfs_fat.h"
#include "py/obj.h"
@@ -36,6 +37,7 @@
typedef struct {
mp_obj_base_t base;
struct _MP3DecInfo *decoder;
+ background_callback_t inbuf_fill_cb;
uint8_t* inbuf;
uint32_t inbuf_length;
uint32_t inbuf_offset;