From b50123e9f22632451e434bb0e39bf8852e23f326 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Tue, 17 Oct 2017 15:10:28 +0200 Subject: [PATCH] a2dp sink demo: fix audio on stream restart --- example/a2dp_sink_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/a2dp_sink_demo.c b/example/a2dp_sink_demo.c index 1f6fdf0c8..f04017d7f 100644 --- a/example/a2dp_sink_demo.c +++ b/example/a2dp_sink_demo.c @@ -352,7 +352,6 @@ static void hal_audio_dma_process(btstack_data_source_t * ds, btstack_data_sourc static int media_processing_init(avdtp_media_codec_configuration_sbc_t configuration){ if (media_initialized) return 0; - #ifdef DECODE_SBC btstack_sbc_decoder_init(&state, mode, handle_pcm_data, NULL); #endif @@ -416,6 +415,7 @@ static int media_processing_init(avdtp_media_codec_configuration_sbc_t configura memset(ring_buffer_storage, 0, sizeof(ring_buffer_storage)); btstack_ring_buffer_init(&ring_buffer, ring_buffer_storage, sizeof(ring_buffer_storage)); audio_stream_started = 0; + audio_stream_paused = 0; #endif media_initialized = 1; return 0;