linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] Info a2play
@ 2005-12-20  8:11 Patrick Libert
  2005-12-20 14:58 ` Brad Midgley
  2005-12-20 21:20 ` [Bluez-users] " Patrick Libert
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick Libert @ 2005-12-20  8:11 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

Hello Bluez-Users

I saw on a website "LiveJournal" that it is possible to
use beep-media-player to stream your mp3 to a bluetooth stereo headset with
a2play.
The syntax is like this:

                       beep-media-player | sox -c 2 -t raw -r 44100 -w -s -
-t au - | ./a2play <http://bluetooth-alsa.sourceforge.net/> -p
00:0D:44:2A:14:66<http://www.shopping.hp.com/webapp/shopping/product_detail.do?product_code=FA303A%23AC3>

with this in the .asoundrc


          pcm.stdout {
                     type file
                     slave.pcm null
                     file /dev/stdout
                   }


When I do this I get an error:

      couldn't open 00:08:E0:09:75:6F

What does the option "-p" with a2play means?
If I do this without the "-p" option I get the following error:

              out of sync (0x2e)
              couldn't read header on -

When I do this:

            mpg123 --au - file.mp3 | sbc/sbcenc - | ./a2play
00:08:E0:09:75:6F
Then It works with my headset. But the music is interrupted sometimes. How
does it come?

I really appriciate if someone could help me.

Kind regards,

Patrick Libert

[-- Attachment #2: Type: text/html, Size: 2051 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] Info a2play
  2005-12-20  8:11 [Bluez-users] Info a2play Patrick Libert
@ 2005-12-20 14:58 ` Brad Midgley
  2005-12-20 21:20 ` [Bluez-users] " Patrick Libert
  1 sibling, 0 replies; 4+ messages in thread
From: Brad Midgley @ 2005-12-20 14:58 UTC (permalink / raw)
  To: bluez-users

Patrick

> I saw on a website "LiveJournal" that it is possible to
> use beep-media-player to stream your mp3 to a bluetooth stereo headset
> with a2play.
> The syntax is like this:
> 
>                        beep-media-player | sox -c 2 -t raw -r 44100 -w
> -s - -t au - | ./a2play <http://bluetooth-alsa.sourceforge.net/> -p
> 00:0D:44:2A:14:66
> <http://www.shopping.hp.com/webapp/shopping/product_detail.do?product_code=FA303A%23AC3>
> 
> with this in the .asoundrc
>                       
> 
>           pcm.stdout {
>                      type file
>                      slave.pcm null
>                      file /dev/stdout
> 
>                    }

it is an interesting way to get an alsa client to work. if it works out,
we should document it ourselves.

> 
> 
> When I do this I get an error:
> 
>       couldn't open 00:08:E0:09:75:6F
>  
> What does the option "-p" with a2play means?

it's to use pthreads and the rtc to get finer control of packet timing.
it's a new feature.

> If I do this without the "-p" option I get the following error:
> 
>               out of sync (0x2e)
>               couldn't read header on -

it seems that the audio format isn't coming out right, but it's probably
because a2play is old.

> 
> When I do this:
> 
>             mpg123 --au - file.mp3 | sbc/sbcenc - | ./a2play
> 00:08:E0:09:75:6F
> Then It works with my headset. But the music is interrupted sometimes.
> How does it come?

are you running an old version of a2play? we haven't had to pipe the
encoder in the chain for a long time. run a2play with no options and if
it doesn't show -p as a valid option you need to get the current one
from cvs.

brad


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bluez-users] Re: Info a2play
  2005-12-20  8:11 [Bluez-users] Info a2play Patrick Libert
  2005-12-20 14:58 ` Brad Midgley
@ 2005-12-20 21:20 ` Patrick Libert
  2006-01-10 16:48   ` Brad Midgley
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick Libert @ 2005-12-20 21:20 UTC (permalink / raw)
  To: bluez-users

I got it now fixed, I used an old version of a2play.

The following syntax works perfectly now!
beep-media-player | sox -c 2 -t raw -r 44100 -w -s - -t au - |
./a2play -p  00:0D:44:2A:14:66

But there is still one problem: the music gets interrupted very often.
I now used the -p option but that still doesn't help.
On Windows XP and my cellphone, it works perfectly.

Kind regards,

patrick


On 12/20/05, Patrick Libert <patrick.libert@gmail.com> wrote:
> Hello Bluez-Users
>
> I saw on a website "LiveJournal" that it is possible to use beep-media-pl=
ayer to stream your mp3 to a bluetooth stereo headset with a2play.
> The syntax is like this:
>
>                        beep-media-player | sox -c 2 -t raw -r 44100 -w -s=
 - -t au - | ./a2play -p  00:0D:44:2A:14:66
>
> with this in the .asoundrc
>
>           pcm.stdout {
>                      type file
>                      slave.pcm null
>                      file /dev/stdout
>
>                    }
>
>
> When I do this I get an error:
>
>       couldn't open 00:08:E0:09:75:6F
>
> What does the option "-p" with a2play means?
> If I do this without the "-p" option I get the following error:
>
>               out of sync (0x2e)
>               couldn't read header on -
>
> When I do this:
>
>             mpg123 --au - file.mp3 | sbc/sbcenc - | ./a2play 00:08:E0:09:=
75:6F
> Then It works with my headset. But the music is interrupted sometimes. Ho=
w does it come?
>
> I really appriciate if someone could help me.
>
> Kind regards,
>
> Patrick Libert
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] Re: Info a2play
  2005-12-20 21:20 ` [Bluez-users] " Patrick Libert
@ 2006-01-10 16:48   ` Brad Midgley
  0 siblings, 0 replies; 4+ messages in thread
From: Brad Midgley @ 2006-01-10 16:48 UTC (permalink / raw)
  To: bluez-users

Patrick

> The following syntax works perfectly now!
> beep-media-player | sox -c 2 -t raw -r 44100 -w -s - -t au - |
> ./a2play -p  00:0D:44:2A:14:66
> 
> But there is still one problem: the music gets interrupted very often.
> I now used the -p option but that still doesn't help.
> On Windows XP and my cellphone, it works perfectly.

Are you using nvidia drivers? My laptop with nvidia would chop up the
audio every time I switched between windows. I think the nvidia driver
is interfering with our rtc.

My fujitsu w/ATI doesn't have the problem.

Brad


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-10 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20  8:11 [Bluez-users] Info a2play Patrick Libert
2005-12-20 14:58 ` Brad Midgley
2005-12-20 21:20 ` [Bluez-users] " Patrick Libert
2006-01-10 16:48   ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).