diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2019-12-10 20:44:43 -0500 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2019-12-10 20:44:43 -0500 |
| commit | 0326c98fd5409d10167d3d2cb3c6ea9dd898a543 (patch) | |
| tree | 6665cb6a1af9399dbbd9d8ca166237106ebf87ea /shared-module/audiocore/RawSample.c | |
| parent | 222dd29a142a530b43fdf4d1ea01e276962b9886 (diff) | |
| parent | 024ba978ec909d39d411a74b443d2ffa20250fa6 (diff) | |
Merge branch 'master' into new-pixelbuf-api
Diffstat (limited to 'shared-module/audiocore/RawSample.c')
| -rw-r--r-- | shared-module/audiocore/RawSample.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-module/audiocore/RawSample.c b/shared-module/audiocore/RawSample.c index d6bf3a567..a69ddeb65 100644 --- a/shared-module/audiocore/RawSample.c +++ b/shared-module/audiocore/RawSample.c @@ -60,6 +60,12 @@ void common_hal_audioio_rawsample_set_sample_rate(audioio_rawsample_obj_t* self, uint32_t sample_rate) { self->sample_rate = sample_rate; } +uint8_t common_hal_audioio_rawsample_get_bits_per_sample(audioio_rawsample_obj_t* self) { + return self->bits_per_sample; +} +uint8_t common_hal_audioio_rawsample_get_channel_count(audioio_rawsample_obj_t* self) { + return self->channel_count; +} void audioio_rawsample_reset_buffer(audioio_rawsample_obj_t* self, bool single_channel, |
