summaryrefslogtreecommitdiff
path: root/shared-module/audioio/WaveFile.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-06-14 18:57:24 -0700
committerGitHub <noreply@github.com>2018-06-14 18:57:24 -0700
commit720042f96454ae347b2fe85baa36cde0cf5ce17e (patch)
tree4fb938bfdff579e222c968faf0f6f84a95fedec6 /shared-module/audioio/WaveFile.h
parent618943d90a958d36d9b0e2206552100069b10ddb (diff)
parentfa814a32ce3a211bcec9b06ad488aa1dde1b669d (diff)
Merge pull request #930 from dhalbert/sd_card_audio_play
Fix playing audio from SD card
Diffstat (limited to 'shared-module/audioio/WaveFile.h')
-rw-r--r--shared-module/audioio/WaveFile.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/shared-module/audioio/WaveFile.h b/shared-module/audioio/WaveFile.h
index 9698d3c93..75a46c03b 100644
--- a/shared-module/audioio/WaveFile.h
+++ b/shared-module/audioio/WaveFile.h
@@ -29,6 +29,8 @@
#include "py/obj.h"
+#include "shared-module/audioio/__init__.h"
+
typedef struct {
mp_obj_base_t base;
uint8_t* buffer;
@@ -56,11 +58,11 @@ typedef struct {
void audioio_wavefile_reset_buffer(audioio_wavefile_obj_t* self,
bool single_channel,
uint8_t channel);
-bool audioio_wavefile_get_buffer(audioio_wavefile_obj_t* self,
- bool single_channel,
- uint8_t channel,
- uint8_t** buffer,
- uint32_t* buffer_length); // length in bytes
+audioio_get_buffer_result_t audioio_wavefile_get_buffer(audioio_wavefile_obj_t* self,
+ bool single_channel,
+ uint8_t channel,
+ uint8_t** buffer,
+ uint32_t* buffer_length); // length in bytes
void audioio_wavefile_get_buffer_structure(audioio_wavefile_obj_t* self, bool single_channel,
bool* single_buffer, bool* samples_signed,
uint32_t* max_buffer_length, uint8_t* spacing);