1
BlueZ D-Bus Audio API description
2
*********************************
4
Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
5
Copyright (C) 2005-2007 Johan Hedberg <johan.hedberg@nokia.com>
6
Copyright (C) 2005-2006 Brad Midgley <bmidgley@xmission.com>
12
Interface org.bluez.Audio
13
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
15
This is a generic audio interface that abstracts the different audio profiles.
17
Methods void Connect()
19
Connect all supported audio profiles on the device.
23
Disconnect all audio profiles on the device
27
Returns all properties for the interface. See the
28
properties section for available properties.
30
Signals void PropertyChanged(string name, variant value)
32
This signal indicates a changed value of the given
35
Properties string State
37
Possible values: "disconnected", "connecting",
40
"disconnected" -> "connecting"
41
Either an incoming or outgoing connection
44
"connecting" -> "disconnected"
45
Connection attempt failed
47
"connecting" -> "connected"
48
Successfully connected
50
"connected" -> "disconnected"
51
Disconnected from the remote device
57
Interface org.bluez.Headset
58
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
60
Methods void Connect()
62
Connect to the HSP/HFP service on the remote device.
66
Disconnect from the HSP/HFP service on the remote
69
boolean IsConnected() {deprecated}
71
Returns TRUE if there is a active connection to the
72
HSP/HFP connection on the remote device.
76
Indicate an incoming call on the headset
77
connected to the stream. Will continue to
78
ring the headset about every 3 seconds.
82
Cancel the incoming call indication.
86
Open the audio connection to the headset.
90
Close the audio connection.
92
boolean IsPlaying() {deprecated}
94
Returns true if an audio connection to the headset
97
uint16 GetSpeakerGain() {deprecated}
99
Returns the current speaker gain if available,
100
otherwise returns the error NotAvailable.
102
uint16 GetMicrophoneGain() {deprecated}
104
Returns the current microphone gain if available,
105
otherwise returns the error NotAvailable.
107
void SetSpeakerGain(uint16 gain) {deprecated}
109
Changes the current speaker gain if possible.
111
void SetMicrophoneGain(uint16 gain) {deprecated}
113
Changes the current speaker gain if possible.
117
Returns all properties for the interface. See the
118
properties section for available properties.
120
Possible Errors: org.bluez.Error.InvalidArguments
122
void SetProperty(string name, variant value)
124
Changes the value of the specified property. Only
125
properties that are listed a read-write are changeable.
126
On success this will emit a PropertyChanged signal.
128
Possible Errors: org.bluez.Error.DoesNotExist
129
org.bluez.Error.InvalidArguments
131
Signals void AnswerRequested()
133
Sent when the answer button is pressed on the headset
135
void Connected() {deprecated}
137
Sent when the device has been connected to.
139
void Disconnected() {deprecated}
141
Sent when the device has been disconnected from.
143
void Stopped() {deprecated}
145
Sent when the audio connection is closed
147
void Playing() {deprecated}
149
Sent when the audio connection is opened
151
void SpeakerGainChanged(uint16 gain) {deprecated}
153
The speaker gain changed.
155
void MicrophoneGainChanged(uint16 gain) {deprecated}
157
The microphone gain changed.
159
PropertyChanged(string name, variant value)
161
This signal indicates a changed value of the given
164
properties string State [readonly]
166
Possible values: "disconnected", "connecting",
167
"connected", "playing"
169
"disconnected" -> "connecting"
170
Either an incoming or outgoing connection
173
"connecting" -> "disconnected"
174
Connection attempt failed
176
"connecting" -> "connected"
177
Successfully connected
179
"connected" -> "playing"
180
SCO audio connection successfully opened
182
"playing" -> "connected"
183
SCO audio connection closed
185
"connected" -> "disconnected"
186
"playing" -> "disconnected"
187
Disconnected from the remote device
189
boolean Connected [readonly]
191
Indicates if there is a active connection to the
192
HSP/HFP connection on the remote device.
194
boolean Playing [readonly]
196
Indicates if an audio connection to the headset
199
uint16 SpeakerGain [readwrite]
201
The speaker gain when available.
203
uint16 MicrophoneGain [readwrite]
205
The speaker gain when available.
212
Interface org.bluez.AudioSink
213
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
215
Methods void Connect()
217
Connect and setup a stream to a A2DP sink on the
222
Disconnect from the remote device.
224
boolean IsConnected() {deprecated}
226
Returns TRUE if a stream is setup to a A2DP sink on
231
Returns all properties for the interface. See the
232
properties section for available properties.
234
Possible Errors: org.bluez.Error.InvalidArguments
236
Signals void Connected() {deprecated}
238
Sent when a successful connection has been made to the
241
void Disconnected() {deprecated}
243
Sent when the device has been disconnected from.
245
void Playing() {deprecated}
247
Sent when a stream with remote device is started.
249
void Stopped() {deprecated}
251
Sent when a stream with remote device is suspended.
253
PropertyChanged(string name, variant value)
255
This signal indicates a changed value of the given
258
properties string State [readonly]
260
Possible values: "disconnected", "connecting",
261
"connected", "playing"
263
"disconnected" -> "connecting"
264
Either an incoming or outgoing connection
267
"connecting" -> "disconnected"
268
Connection attempt failed
270
"connecting" -> "connected"
271
Successfully connected
273
"connected" -> "playing"
276
"playing" -> "connected"
277
Audio stream suspended
279
"connected" -> "disconnected"
280
"playing" -> "disconnected"
281
Disconnected from the remote device
283
boolean Connected [readonly]
285
Indicates if a stream is setup to a A2DP sink on
288
boolean Playing [readonly]
290
Indicates if a stream is active to a A2DP sink on
293
AudioSource hierarchy
294
=====================
297
Interface org.bluez.AudioSource
298
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
300
Methods void Connect()
302
Connect and setup a stream to a A2DP source on the
307
Disconnect from the remote device.
311
Returns all properties for the interface. See the
312
properties section for available properties.
314
Possible Errors: org.bluez.Error.InvalidArguments
316
Signals PropertyChanged(string name, variant value)
318
This signal indicates a changed value of the given
321
properties string State [readonly]
323
Possible values: "disconnected", "connecting",
324
"connected", "playing"
326
"disconnected" -> "connecting"
327
Either an incoming or outgoing connection
330
"connecting" -> "disconnected"
331
Connection attempt failed
333
"connecting" -> "connected"
334
Successfully connected
336
"connected" -> "playing"
339
"playing" -> "connected"
340
Audio stream suspended
342
"connected" -> "disconnected"
343
"playing" -> "disconnected"
344
Disconnected from the remote device
347
HeadsetGateway hierarchy
348
========================
351
Interface org.bluez.HeadsetGateway
352
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
354
This interface is available for remote devices which can function in the Audio
355
Gateway role of the HFP profiles.
357
Methods void Connect()
359
Connect to the AG service on the remote device.
363
Disconnect from the AG service on the remote device
367
It has to called only after Ring signal received.
371
Terminate call which is running or reject an incoming
372
call. This has nothing with any 3-way situation incl.
373
RaH. Just plain old PDH.
375
void Call(string number)
377
Dial a number 'number'. No number processing is done
378
thus if AG would reject to dial it don't blame me :)
380
string GetOperatorName()
382
Find out the name of the currently selected network
385
void SendDTMF(string digits)
387
Will send each digit in the 'digits' sequentially. Would
388
send nothing if there is non-dtmf digit.
390
string GetSubscriberNumber()
392
Get the voicecall subscriber number of AG
396
Returns all properties for the interface. See the
397
properties section for available properties.
399
Signals void Ring(string number)
401
Someone's calling from 'number'.
402
Caller number is provided as received from AG.
404
void CallTerminated()
406
Call failed to set up. It means that we tried to call
407
someone or someone tried to call us but call was not
412
Call set up successfully.
416
Call was started and now ended. In contrast with
417
CallTerminated where call didn't started
419
PropertyChanged(string name, variant value)
421
This signal indicates a changed value of the given
424
properties boolean Connected [readonly]
426
Indicates if there is an active connection to the
427
AG service on the remote device.
429
uint16 RegistrationStatus [readonly]
431
Service availability indicatior of AG, where:
432
0 implies no service. No Home/Roam network available.
433
1 implies presense of service. Home/Roam network
436
uint16 SignalStrength [readonly]
438
Signal strength indicator of AG, the value ranges from
441
uint16 RoamingStatus [readonly]
443
Roaming status indicator of AG, where:
444
0 means roaming is not active
445
1 means a roaming is active
447
uint16 BatteryCharge [readonly]
449
Battery Charge indicator of AG, the value ranges from
452
uint16 SpeakerGain [readonly]
454
The speaker gain when available.
456
uint16 MicrophoneGain [readonly]
458
The speaker gain when available.