public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Fwd: Super fast audio with alsa
       [not found] <ea2906620907140856r718f5f76k59a461dfc9dd666c@mail.gmail.com>
@ 2009-07-15 10:55 ` Daniel Castro
  2009-07-15 11:06   ` James Le Cuirot
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Castro @ 2009-07-15 10:55 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

Very new to this bluetooth audio stuff and I hope this is a good place to ask.

I have a Motorola S9 headset, and I followed the instructions in
http://wiki.bluez.org/wiki/HOWTO/AudioDevices to configure it to
listen music with Audacious.
I also have blueman installed which makes it very easy to pair and connect.

It kinda' works, but most of the times the audio goes super fast, it
goes through the whole song in seconds, and CPU usage gets very high.
When it works, if I leave it then it keeps working, but as soon as I
start doing stuff like next song, play/pause it get messy again.

Not sure it makes sense?
Can someone help? Need more info? Can you point me in the right direction?

Thanks!

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

* Re: Super fast audio with alsa
  2009-07-15 10:55 ` Fwd: Super fast audio with alsa Daniel Castro
@ 2009-07-15 11:06   ` James Le Cuirot
  2009-07-15 11:16     ` Daniel Castro
  0 siblings, 1 reply; 5+ messages in thread
From: James Le Cuirot @ 2009-07-15 11:06 UTC (permalink / raw)
  Cc: linux-bluetooth

On Wed, 15 Jul 2009 11:55:52 +0100
Daniel Castro <castromd@tcd.ie> wrote:

> I have a Motorola S9 headset, and I followed the instructions in
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices to configure it to
> listen music with Audacious.
> I also have blueman installed which makes it very easy to pair and
> connect.
> 
> It kinda' works, but most of the times the audio goes super fast, it
> goes through the whole song in seconds, and CPU usage gets very high.
> When it works, if I leave it then it keeps working, but as soon as I
> start doing stuff like next song, play/pause it get messy again.
> 
> Not sure it makes sense?
> Can someone help? Need more info? Can you point me in the right
> direction?

I have the Motorola S9 and it works with ALSA for me but I'm not sure
if I ever tried it through Audacious. Did you try it via a plug device
or did you use the device directly?

Personally I'm waiting for PulseAudio's bluetooth support to get
completed because I find the ALSA driver a bit unreliable and
impractical. It sometimes crashes the player and heaven forbid you go
out of range!

James

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

* Re: Super fast audio with alsa
  2009-07-15 11:06   ` James Le Cuirot
@ 2009-07-15 11:16     ` Daniel Castro
  2009-07-15 11:44       ` James Le Cuirot
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Castro @ 2009-07-15 11:16 UTC (permalink / raw)
  To: James Le Cuirot; +Cc: linux-bluetooth

2009/7/15 James Le Cuirot <chewi@aura-online.co.uk>:
> On Wed, 15 Jul 2009 11:55:52 +0100
> Daniel Castro <castromd@tcd.ie> wrote:
>
>> I have a Motorola S9 headset, and I followed the instructions in
>> http://wiki.bluez.org/wiki/HOWTO/AudioDevices to configure it to
>> listen music with Audacious.
>> I also have blueman installed which makes it very easy to pair and
>> connect.
>>
>> It kinda' works, but most of the times the audio goes super fast, it
>> goes through the whole song in seconds, and CPU usage gets very high.
>> When it works, if I leave it then it keeps working, but as soon as I
>> start doing stuff like next song, play/pause it get messy again.
>>
>> Not sure it makes sense?
>> Can someone help? Need more info? Can you point me in the right
>> direction?
>
> I have the Motorola S9 and it works with ALSA for me but I'm not sure
> if I ever tried it through Audacious. Did you try it via a plug device
> or did you use the device directly?

not sure how to answer your question.

so i created the ~/.asoundrc file with:
pcm.S9bluetoothraw {
   type bluetooth
   device 00:0D:FD:23:1A:DE
}
pcm.S9bluetooth {
    type plug
    slave {
        pcm S9bluetoothraw
    }
}

and then from audacious I tell it to use ALSA Output plugin for it's
audio system and set S9bluetooth as the audio device.

>
> Personally I'm waiting for PulseAudio's bluetooth support to get
> completed because I find the ALSA driver a bit unreliable and
> impractical. It sometimes crashes the player and heaven forbid you go
> out of range!

I use pulse audio at my home computer and it just works, no issues.
I created the asundrc file and issue the "pactl load-module
module-alsa-sink device=S9bluetooth" command every time I want to use
it and used pavucontrol the first time to configure it to use shared
outputs.

But on my work computer shared output won't work and if I start
sending audio out to the S9 and then another application (say Pidgin)
sends audio everything crashes. That's why I'm hoping to use just
audacious with ALSA.

Do you see any other solution I could try?

>
> James
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



-- 
________________________

Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________

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

* Re: Super fast audio with alsa
  2009-07-15 11:16     ` Daniel Castro
@ 2009-07-15 11:44       ` James Le Cuirot
  2009-07-15 11:56         ` Daniel Castro
  0 siblings, 1 reply; 5+ messages in thread
From: James Le Cuirot @ 2009-07-15 11:44 UTC (permalink / raw)
  Cc: linux-bluetooth

On Wed, 15 Jul 2009 12:16:51 +0100
Daniel Castro <castromd@tcd.ie> wrote:

> 2009/7/15 James Le Cuirot <chewi@aura-online.co.uk>:
> > I have the Motorola S9 and it works with ALSA for me but I'm not
> > sure if I ever tried it through Audacious. Did you try it via a
> > plug device or did you use the device directly?  
> 
> not sure how to answer your question.
> 
> so i created the ~/.asoundrc file with:
> pcm.S9bluetoothraw {
>    type bluetooth
>    device 00:0D:FD:23:1A:DE
> }
> pcm.S9bluetooth {
>     type plug
>     slave {
>         pcm S9bluetoothraw
>     }
> }
> 
> and then from audacious I tell it to use ALSA Output plugin for it's
> audio system and set S9bluetooth as the audio device.

That is what I meant. Should work. I'm no expert so I can't suggest
much more than trying something other than Audacious but I'm guessing
you have already.

James

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

* Re: Super fast audio with alsa
  2009-07-15 11:44       ` James Le Cuirot
@ 2009-07-15 11:56         ` Daniel Castro
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Castro @ 2009-07-15 11:56 UTC (permalink / raw)
  To: James Le Cuirot; +Cc: linux-bluetooth

2009/7/15 James Le Cuirot <chewi@aura-online.co.uk>:
> On Wed, 15 Jul 2009 12:16:51 +0100
> Daniel Castro <castromd@tcd.ie> wrote:
>
>> 2009/7/15 James Le Cuirot <chewi@aura-online.co.uk>:
>> > I have the Motorola S9 and it works with ALSA for me but I'm not
>> > sure if I ever tried it through Audacious. Did you try it via a
>> > plug device or did you use the device directly?
>>
>> not sure how to answer your question.
>>
>> so i created the ~/.asoundrc file with:
>> pcm.S9bluetoothraw {
>>    type bluetooth
>>    device 00:0D:FD:23:1A:DE
>> }
>> pcm.S9bluetooth {
>>     type plug
>>     slave {
>>         pcm S9bluetoothraw
>>     }
>> }
>>
>> and then from audacious I tell it to use ALSA Output plugin for it's
>> audio system and set S9bluetooth as the audio device.
>
> That is what I meant. Should work. I'm no expert so I can't suggest
me either :(
> much more than trying something other than Audacious but I'm guessing
> you have already.
yes i have... pretty much same thing happens...

I just tried:
~$ sudo alsa reload

hit play in audacious and it's working... maybe this is a workaround
or maybe it was just coincidence... i'll monitor and see.
>
> James
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



-- 
________________________

Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________

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

end of thread, other threads:[~2009-07-15 11:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ea2906620907140856r718f5f76k59a461dfc9dd666c@mail.gmail.com>
2009-07-15 10:55 ` Fwd: Super fast audio with alsa Daniel Castro
2009-07-15 11:06   ` James Le Cuirot
2009-07-15 11:16     ` Daniel Castro
2009-07-15 11:44       ` James Le Cuirot
2009-07-15 11:56         ` Daniel Castro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox