Hi Edwin
You can change the sampling rate by:
- pause the stream with a2dp_source_pause_stream
- changing the sampling rate with a2dp_source_reconfigure_stream_sampling_frequency
- restarting the stream with a2dp_source_start_stream
This is demonstrated in our a2dp_source_demo for quick testing btw.
Alternatively, you could just use 48 khz and use our btstack_resample.c implementation to upsample a lower sampling rate, e.g. 44.1 kHz, to 48 kHz.
Cheers
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
btstack-dev...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/btstack-dev/a3f21b78-aff4-4c48-9bd2-760b6959a03en%40googlegroups.com.