All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brad Midgley <bmidgley@xmission.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] audio & dbus
Date: Wed, 15 Nov 2006 23:14:28 -0700	[thread overview]
Message-ID: <455C01C4.7090801@xmission.com> (raw)

Marcel,

Can we discuss the audio dbus api some more?

fwiw, I'm not sure how to break away from the need to specify the 
profile for the case of a combo a2dp/sco device.

I'm focusing on routing "voice" (2-way audio) as a first priority. I 
don't provide methods for adding and removing SCO from the voice route 
since that's implied by connect/disconnect.

If this looks good I'll start boiling down HSP/HFP methods & signals.

Audio hierarchy (experimental)
==============================

Service		org.bluez
Interface	org.bluez.Audio

Methods		array{string} ListDevices()

			Return array of bdaddr strings for each audio
			device we have paired with.

		void Connect(string identifier, string profile)

			Opens the control connection to an audio device.
			Will not open the audio channel until requested
			by the audio plugin or directly from the
			application.

		void Disconnect(string identifier, string profile)

			Stops audio if it was playing and closes the
			control connection to the audio device.

		void Play(string identifier, string profile)

			Opens the audio stream. Called from the audio
			plugin or from the application if audio is
			routed somewhere other than the daemon (eg
			through PCM, direct to the DSP).

		void Stop(string identifier, string profile)

		void Pause(string identifier, string profile)

		void Resume(string identifier, string profile)

		void SetIdleDisconnect(string identifier, string profile, int32 delay)

			Set the idle Stop for the device.

			Only applicable when audio is routed through the
			daemon. Stop the stream and emit a signal if
			delay seconds pass without any audio being sent
			to the daemon from an application. A value of 0
			indicates no idle stop; this is the default.

		int32 GetIdleDisconnect(string identifier, string profile)

		int32 GetVolume(string identifier, string profile)

		void SetVolume(string identifier, string profile, int32 volume)

			Volume is 0..15

		void ChangeVolume(string identifier, string profile, int16 delta)

			delta is +1 or -1

		void AddWiredVoice()

			Add wired audio output to the voice routing rule

		void RemoveWiredVoice()

			Remove wired audio output from the voice routing
			rule

Signals		void Connected()

			Indicate device and profile.

		void Disconnected()
		
			Indicate device and profile.

		void Played()

			Indicate device and profile.

		void Stopped()

			Indicate device and profile.

		void Paused()

			Indicate device and profile.

		void Resumed()

			Indicate device and profile.

		void IdleStopChanged()

			Indicate the new idle, device, profile

		void VolumeSet()

			Indicate new volume, device, profile.

		void VolumeChanged()

			Indicate +1 or -1, device, profile.

		void WiredVoiceAdded()

			Indicated when wired audio is added to the
			voice route, also automatically when a SCO
			set is disconnected.

		void WiredVoiceRemoved()

			Indicated when wired audio is removed from
			the voice route, also automatically when a
			SCO set is connected.


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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2006-11-16  6:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16  6:14 Brad Midgley [this message]
2006-11-16 10:22 ` [Bluez-devel] audio & dbus Marcel Holtmann
2006-11-16 15:48   ` Brad Midgley
2006-11-16 16:03     ` Marcel Holtmann
2006-11-16 16:17       ` Johan Hedberg
2006-11-16 16:45       ` Brad Midgley
2006-11-16 17:18         ` Marcel Holtmann
2006-11-17 19:35           ` Brad Midgley
2006-11-17 19:53             ` Brad Midgley
2006-11-16 19:19       ` Brad Midgley
2006-11-16 19:38     ` Fabien Chevalier
2006-11-16 20:45       ` Brad Midgley
2006-11-16 19:27   ` Fabien Chevalier
2006-11-16 20:36     ` Brad Midgley
2006-11-19 17:20       ` Fabien Chevalier
2006-11-20  1:27         ` Brad Midgley
2006-11-21 19:23           ` Fabien Chevalier
2006-11-21 21:02             ` Brad Midgley
2006-11-22 11:09               ` Fabien Chevalier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455C01C4.7090801@xmission.com \
    --to=bmidgley@xmission.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.