linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* a2dp stream delayed if playback started immediately after connect
@ 2020-03-25  5:58 Christian Fischer
  0 siblings, 0 replies; only message in thread
From: Christian Fischer @ 2020-03-25  5:58 UTC (permalink / raw)
  To: linux-bluetooth

Hello guys, i have a little problem a2dp related.
I've written a mono c# application which will wait for a specific device (phone) is connected and will then start the music playback immediatly.
Pulseaudio is playing the music on its connected usb-soundcard. So at the moment when my phone gets connected the stream starts playing.
So when i press forward at the phone its command is delayed by approx. 2 seconds, so in the bluetoothd debug output i can see that AVRCP command is received immediatly. But the stream got a delay.
When i press pause and wait till this:
bluetoothd[20399]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: STREAMING -> OPEN
bluetoothd[20399]: profiles/audio/source.c:source_set_state() State changed /org/bluez/hci0/dev_F0_98_9D_D8_46_19: SOURCE_STATE_PLAYING -> SOURCE_STATE_CONNECTED
bluetoothd[20399]: profiles/audio/transport.c:transport_update_playing() /org/bluez/hci0/dev_F0_98_9D_D8_46_19/sep1/fd1 State=TRANSPORT_STATE_ACTIVE Playing=0
bluetoothd[20399]: profiles/audio/transport.c:media_transport_remove_owner() Transport /org/bluez/hci0/dev_F0_98_9D_D8_46_19/sep1/fd1 Owner :1.56
bluetoothd[20399]: profiles/audio/transport.c:media_owner_free() Owner :1.56
bluetoothd[20399]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_F0_98_9D_D8_46_19/sep1/fd1: TRANSPORT_STATE_ACTIVE -> TRANSPORT_STATE_IDLE
bluetoothd[20399]: profiles/audio/a2dp.c:a2dp_sep_unlock() SEP 0x114f798 unlocked
bluetoothd[20399]: src/device.c:connect_profiles() /org/bluez/hci0/dev_F0_98_9D_D8_46_19 (all), client :1.73
 
And start again, all commands and streams are back in sync.
Any tips? Is that Maybe pulseaudio related?
 
Thanks in advice,
chris

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-25  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25  5:58 a2dp stream delayed if playback started immediately after connect Christian Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).