audiocore: restore the prototypes of audiosample_xxx functions

crypto-aes
Jeff Epler 3 years ago
parent 49a547eed8
commit 60f489d36a
  1. 12
      shared-module/audiocore/__init__.h

@ -61,15 +61,15 @@ typedef struct _audiosample_p_t {
audiosample_get_buffer_structure_fun get_buffer_structure;
} audiosample_p_t;
uint32_t audiosample_sample_rate(void* sample_obj);
uint8_t audiosample_bits_per_sample(void* sample_obj);
uint8_t audiosample_channel_count(void* sample_obj);
void audiosample_reset_buffer(void* sample_obj, bool single_channel, uint8_t audio_channel);
audioio_get_buffer_result_t audiosample_get_buffer(void* sample_obj,
uint32_t audiosample_sample_rate(mp_obj_t sample_obj);
uint8_t audiosample_bits_per_sample(mp_obj_t sample_obj);
uint8_t audiosample_channel_count(mp_obj_t sample_obj);
void audiosample_reset_buffer(mp_obj_t sample_obj, bool single_channel, uint8_t audio_channel);
audioio_get_buffer_result_t audiosample_get_buffer(mp_obj_t sample_obj,
bool single_channel,
uint8_t channel,
uint8_t** buffer, uint32_t* buffer_length);
void audiosample_get_buffer_structure(void* sample_obj, bool single_channel,
void audiosample_get_buffer_structure(mp_obj_t sample_obj, bool single_channel,
bool* single_buffer, bool* samples_signed,
uint32_t* max_buffer_length, uint8_t* spacing);

Loading…
Cancel
Save