a2dp stream delayed if playback started immediately after connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux