summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-11 12:56:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-11 12:56:42 +0000
commit36a07968fcc69442e3248caa46e74de18bacea75 (patch)
tree936136a5e278b75181c7e23f2572d3af9f52d685
parentd317144c04b6d52c354a7cdd11a62adf6de42b64 (diff)
Create objects for default device and sink
-rwxr-xr-xaudio/test-audio8
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/test-audio b/audio/test-audio
index 5553f0a5..19ea6252 100755
--- a/audio/test-audio
+++ b/audio/test-audio
@@ -17,3 +17,11 @@ try:
'org.bluez.audio.Headset')
except:
pass
+
+try:
+ device = dbus.Interface(bus.get_object(conn, audio.DefaultDevice()),
+ 'org.bluez.audio.Device')
+ sink = dbus.Interface(bus.get_object(conn, audio.DefaultDevice()),
+ 'org.bluez.audio.Sink')
+except:
+ pass