A2dp sink not working :(

mooalot
Posts: 13
Joined: Sun Jan 26, 2020 4:31 am

A2dp sink not working :(

Postby mooalot » Sun Jan 26, 2020 4:50 am

Im using the master branch for the a2dp sink example, but I cant get it to work.

I believe the hardware is setup correctly because I have used dac_output_voltage() function to output a sine wave. The sine wave outputs on my speaker just fine.

When I try to connect my phone, however, there is no audio output.

I think I followed this guide exactly https://github.com/espressif/esp-idf/tr ... /a2dp_sink

I changed the menuconfig to the internal 8 bit dac output and I made sure that bluetooth classic and a2dp were enabled.

The output is just silence, but the monitor shows that it is receiving the audio packets and AVRC controls as it should:

Code: Select all

I (57927) BT_AV: Audio packet count 400
I (58487) RCTG: Volume is set locally to: 19%
I (60257) BT_AV: Audio packet count 500

Help... :oops:

dimfred
Posts: 5
Joined: Mon Apr 22, 2019 3:49 pm

Re: A2dp sink not working :(

Postby dimfred » Tue Mar 31, 2020 3:29 pm

+1, same problem here.

dimfred
Posts: 5
Joined: Mon Apr 22, 2019 3:49 pm

Re: A2dp sink not working :(

Postby dimfred » Tue Mar 31, 2020 6:30 pm

Got it working by switching replacing:

Code: Select all

in i2s_config_t

communication_format=I2S_COMM_FORMAT_I2S_MSB
to
communication_format : I2S_COMM_FORMAT_PCM

my sound was terrible then, so I added https://github.com/espressif/esp-idf/issues/1614 what @macaba mentioned to improve the quality, it still sucks but better than nothing ^^

I am using v4.1 btw

For me this says that the a2dp_sink example is kinda buggy or I am doing something wrong, idk.

Hope this helps

mooalot
Posts: 13
Joined: Sun Jan 26, 2020 4:31 am

Re: A2dp sink not working :(

Postby mooalot » Fri Apr 03, 2020 6:00 pm

Thanks! That helped a ton! Too bad its only an 8 bit dac

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 111 guests