mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
example: update a2dp_source for hxcmod update
This commit is contained in:
parent
4aa7d471d3
commit
0560949a98
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user