From 0560949a984d100d4527e35d3354580a6c1cba59 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 9 Dec 2024 12:26:31 +0100 Subject: [PATCH] example: update a2dp_source for hxcmod update --- example/a2dp_source_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/a2dp_source_demo.c b/example/a2dp_source_demo.c index 388d5c72c..b25f9ab01 100644 --- a/example/a2dp_source_demo.c +++ b/example/a2dp_source_demo.c @@ -355,7 +355,7 @@ static void a2dp_demo_hexcmod_configure_sample_rate(int sample_rate){ media_tracker.sbc_storage_count = 0; media_tracker.samples_ready = 0; hxcmod_unload(&mod_context); - hxcmod_setcfg(&mod_context, current_sample_rate, 16, 1, 1, 1); + hxcmod_setcfg(&mod_context, current_sample_rate, 1, 1); hxcmod_load(&mod_context, (void *) &mod_data, mod_len); } @@ -404,7 +404,7 @@ static void produce_sine_audio(int16_t * pcm_buffer, int num_samples_to_write){ } static void produce_mod_audio(int16_t * pcm_buffer, int num_samples_to_write){ - hxcmod_fillbuffer(&mod_context, (unsigned short *) &pcm_buffer[0], num_samples_to_write, &trkbuf); + hxcmod_fillbuffer(&mod_context, &pcm_buffer[0], num_samples_to_write, &trkbuf); } static void produce_audio(int16_t * pcm_buffer, int num_samples){