diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-06-14 18:57:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-14 18:57:24 -0700 |
| commit | 720042f96454ae347b2fe85baa36cde0cf5ce17e (patch) | |
| tree | 4fb938bfdff579e222c968faf0f6f84a95fedec6 /shared-module/audioio/RawSample.c | |
| parent | 618943d90a958d36d9b0e2206552100069b10ddb (diff) | |
| parent | fa814a32ce3a211bcec9b06ad488aa1dde1b669d (diff) | |
Merge pull request #930 from dhalbert/sd_card_audio_play
Fix playing audio from SD card
Diffstat (limited to 'shared-module/audioio/RawSample.c')
| -rw-r--r-- | shared-module/audioio/RawSample.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared-module/audioio/RawSample.c b/shared-module/audioio/RawSample.c index e7059bf5a..6422e346b 100644 --- a/shared-module/audioio/RawSample.c +++ b/shared-module/audioio/RawSample.c @@ -66,18 +66,18 @@ void audioio_rawsample_reset_buffer(audioio_rawsample_obj_t* self, uint8_t channel) { } -bool audioio_rawsample_get_buffer(audioio_rawsample_obj_t* self, - bool single_channel, - uint8_t channel, - uint8_t** buffer, - uint32_t* buffer_length) { +audioio_get_buffer_result_t audioio_rawsample_get_buffer(audioio_rawsample_obj_t* self, + bool single_channel, + uint8_t channel, + uint8_t** buffer, + uint32_t* buffer_length) { *buffer_length = self->len; if (single_channel) { *buffer = self->buffer + (channel % self->channel_count) * (self->bits_per_sample / 8); } else { *buffer = self->buffer; } - return true; + return GET_BUFFER_DONE; } void audioio_rawsample_get_buffer_structure(audioio_rawsample_obj_t* self, bool single_channel, |
