audiocore: The arguments to reset_buffer went missing
In conversion I missed these arguments were being passed, but noticed it when an implausible value for audio_channel was sent to mp3's reset_buffer method. It's not clear whether there was any negative impact to this, but it should be fixed!
This commit is contained in:
parent
6c3d555b87
commit
a854a76819
@ -52,7 +52,7 @@ 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) {
|
||||
const audiosample_p_t *proto = mp_proto_get_or_throw(MP_QSTR_protocol_audiosample, sample_obj);
|
||||
proto->reset_buffer(MP_OBJ_TO_PTR(sample_obj));
|
||||
proto->reset_buffer(MP_OBJ_TO_PTR(sample_obj), single_channel, audio_channel);
|
||||
}
|
||||
|
||||
audioio_get_buffer_result_t audiosample_get_buffer(mp_obj_t sample_obj,
|
||||
|
@ -42,7 +42,8 @@ typedef enum {
|
||||
typedef uint32_t (*audiosample_sample_rate_fun)(mp_obj_t);
|
||||
typedef uint8_t (*audiosample_bits_per_sample_fun)(mp_obj_t);
|
||||
typedef uint8_t (*audiosample_channel_count_fun)(mp_obj_t);
|
||||
typedef void (*audiosample_reset_buffer_fun)(mp_obj_t);
|
||||
typedef void (*audiosample_reset_buffer_fun)(mp_obj_t,
|
||||
bool single_channel, uint8_t audio_channel);
|
||||
typedef audioio_get_buffer_result_t (*audiosample_get_buffer_fun)(mp_obj_t,
|
||||
bool single_channel, uint8_t channel, uint8_t** buffer,
|
||||
uint32_t* buffer_length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user