From: Brad Midgley <bmidgley@xmission.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] audio & dbus
Date: Sun, 19 Nov 2006 18:27:10 -0700 [thread overview]
Message-ID: <4561046E.50905@xmission.com> (raw)
In-Reply-To: <4560925E.3030901@free.fr>
Fabien
>>>>> int32 GetIdleDisconnect(string identifier, string profile)
>>> Brad : How are we supposed to handle the case when an application
>>> crashes while sending audio data ? Will he have to keep the audio
>>> channel opened forever ?
>> if the disconnect timout is set then after the timeout passes the sco
>> connection will be closed.
>>
>> I didn't want the timeout to default to be on since it's only useful in
>> the case when audio goes over hci.
>
> Looks like you lost me there :-(, i didn't understand your last sentence
we may have to modify this timeout plan. What I wanted was for the
daemon to see when audio transmission was idle and have it put the state
into "stopped" and close the sco or a2dp audio connection. The plugin
would be notified via dbus that this had happened.
We should work out a plan so the daemon knows when an app is actively
sending audio even if the daemon is not processing that audio directly.
> Brad, could you provide some details on that ?
> If i read your schematic correctly, there is a GUI that allows user to
> choose between PCM and headset routing.
> If this is what it is supposed to do, then it is possible to do it at
> ALSA level without having to write any code :
>
> Users would have to add that in their ~/.asoundrc for instance
>
> pcm.!default {
> type dmix
> slave.pcm "a2dpd"
> }
>
> And this would switch their default output to be the headset.
> Of course it is possible to write a program that automates that so that
> people don't have to dig in their configuration files.
the advantage of using dbus communicating to an alsa plugin is the
change (for example) from built-in audio to sco bluetooth audio can take
effect in the middle of a voip call without the voip app needing to know
anything special happened.
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
next prev parent reply other threads:[~2006-11-20 1:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 6:14 [Bluez-devel] audio & dbus Brad Midgley
2006-11-16 10:22 ` 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 [this message]
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=4561046E.50905@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.