public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Brad Midgley <bmidgley@xmission.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] alsa plugin querying stream states
Date: Thu, 07 Dec 2006 23:10:49 -0700	[thread overview]
Message-ID: <457901E9.6070309@xmission.com> (raw)

Hey

We can connect headsets from a gui and the plan is to have signals
generated when that happens, but if an audio client is launched *after*
the streams are opened or started, its plugin needs to be able to find
out the state of things on startup so it can route audio properly.

This would mean some more methods unless you can see another way:

                array{string} ListActiveStreams()

                boolean IsHeadset(string stream)

                        Return true if the stream represents a
                        headset.

                boolean IsSink(string stream)

                        Return true if the stream represents
                        A2DP headphones.

                boolean IsPlaying(string stream)

                        Return true if the stream is in a playing
                        state.

As long as these are here, we might simplify Connect to return both
kinds of streams for combo headset/a2dp sets.

		array{string} Connect(string bdaddr)

then the array of streams returned can be queried by the methods above.

I really hope we're converging on something... a really simple solution
has been elusive.

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-12-08  6:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=457901E9.6070309@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox