Re: [Bluez-devel] New A2DP support : HOWTO ?

Fabien Chevalier
2007-08-14T12:50:55Z

Thanks frederic !

For some reason my headset tries to start the A2DP stream, connects to
RFCOMM channel, and then stops the a2dp stream, while it stays connected
to rfcomm (hs profile).

To force the use of a2dp i had to reload the audio daemon, and then
launch the multimedia player. It then tries to start a2dp stream, and it
works.

Btw i got perfect sound quality compared to a2dpd. No small glitches
from time to time, just *perfect* sound. :-)

Fabien

> Hi,
>
>> Certainly a very stupid question : but how do we get started using
>> the
>> brand new A2DP support ? - for me it seems that it still favors sco over
>> a2dp :-(
>
> I modified the test-audio python script to get something like this:
> Look at your syslog to see what happen.
> I then got my headset connected and could hear something ;)
>
> #!/usr/bin/python
> import dbus
> bus = dbus.SystemBus()
> manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
> 'org.bluez.Manager')
>
> conn = manager.ActivateService('audio')
> audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'),
> 'org.bluez.audio.Manager')
>
> # Create device
> path = audio.CreateDevice("00:03:89:AA:BD:64")
>
> # Get org.bluez.audio.Sink interface
> sink = dbus.Interface(bus.get_object(conn, path),
> 'org.bluez.audio.Sink')
>
> try:
> sink.Connect()
> except:
> pass
>
> #sink.Disconnect()
>
>
> Hope this helps
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel