Skip to contentSkip to conversation

org.bluez.Audio and connections

Bluez-devel Brad Midgley 1 participant 1 message Dec 13, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Marcel

Can we go back and look at audio connection init & inspect? I proposed ListConnectedStreams and ways to examine each stream for profile and status... we may start up an audio app after the connection was already going so the app would have missed seeing the connect signals.

Do these look ok?

array{string} ListAudioDevices()

Returns list of bdaddrs for devices that report audio in their device class.

array{string} Connect(string bdaddr)

Connects the headset/headphones using A2DP or HSP/HFP or both. Returns the array of streams representing the successful connections.

void Disconnect(string bdaddr)

Disconnect all streams to the audio device.

array{string} ListConnectedStreams()

string StreamAddress(string stream)

Returns the bdaddr the indicated stream connects to.

boolean IsHeadset(string stream)

Return true if the stream represents a headset.

boolean IsSink(string stream)

Return true if the stream represents headphones.

boolean IsPlaying(string stream)

Return true if the stream is in a playing state.

boolean IsPaused(string stream)

Brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel