All of lore.kernel.org
 help / color / mirror / Atom feed
From: deker <deker@slackdot.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Multiple simultaneous audio streams?
Date: Tue, 04 Nov 2008 11:13:10 -0500	[thread overview]
Message-ID: <49107496.9030409@slackdot.org> (raw)
In-Reply-To: <20081104132403.GA22659@localhost>


I've changed the MaxConnections setting and now I'm seeing something 
different (this must mean I'm getting closer :)

I'm using the following config/comandline to play audio:

audio.conf:
[General]
SCORouting=PCM
[Headset]
HFP=False
MaxConnections=2

~/.asoundrc:

pcm.bluetooth {
    type bluetooth
    device 00:0B:2E:D5:27:DA  
    profile auto
}
pcm.bluetooth2 {
    type bluetooth
    device 00:0B:2E:D4:EC:31
    profile auto
}

mplayer command lines:

 mplayer -ao alsa:device=bluetooth test.wav
 mplayer -ao alsa:device=bluetooth2 test.wav

Either execution of mplayer works properly as long as the other isn't 
streaming to the device. If one is already running, mplayer reports the 
following:

[AO_ALSA] alsa-lib: pcm_bluetooth.c:464:(bluetooth_hsp_hw_params) 
BT_SETCONFIGURATION failed : Input/output error(5)
[AO_ALSA] Unable to set hw-parameters: Input/output error
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

Also, it seems that I'm losing the beginning of the sample in playback. 
I assume this is due to the delay of setting up the connection to the 
headset, but I was wondering if there was a way to avoid this.

Thanks,

-d




Johan Hedberg wrote:
> On Mon, Nov 03, 2008, deker wrote:
>   
>>  I am working on a project where it would be desirable to have audio 
>> streams going to more than one SCO audio device at a time. My quick test 
>> today of playing a WAV file with mplayer to two different devices didn't 
>> work and bluetoothd was reporting "connection refused" when I tried to 
>> get the second stream going. Once the first playback finished, I was 
>> able to then play to the second device.
>>
>> So, I suppose m question is if BlueZ supports audio to multiple SCO 
>> devices at the same time? If not, what might be involved in making it work?
>>     
>
> If you're using BlueZ 4.17 or later you'll need to add something like
> MaxConnections=2
> to the [Headset] section in /etc/bluetooth/audio.conf to be able to
> create a service level connection to more than 1 device.
>
> Johan
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2008-11-04 16:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  4:26 [Bluez-devel] Multiple simultaneous audio streams? deker
2008-11-04  5:12 ` Marcel Holtmann
2008-11-04 13:13   ` deker
2008-11-04 13:24 ` Johan Hedberg
2008-11-04 16:13   ` deker [this message]
2008-11-04 20:38     ` deker
2008-11-07 17:36       ` [Bluez-devel] Need Help. Plz reply Ramesh Jayapal

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=49107496.9030409@slackdot.org \
    --to=deker@slackdot.org \
    --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.