public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Chick <chick@computergeek.freeserve.co.uk>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] skype and bluetooth
Date: Tue, 15 May 2007 22:20:57 +0100	[thread overview]
Message-ID: <200705152220.58038.chick@computergeek.freeserve.co.uk> (raw)
In-Reply-To: <200705152222.11641.bluez-devel@huitl.de>

On Tuesday 15 May 2007 21:22, Robert Huitl wrote:
> Okay after some debugging I know what the problem is.
> 2.) Offering more sampling rates than 8 kHz would be nice to have, but I'm
> not familiar with the design philosophies around ALSA. It's probably not a
> good idea to implement resampling in each and every sound plugin like
> pcm_sco. Does ALSA have some resampling facilities that can be plugged in
> between an application and a plugin? Maybe some magic lines in .asoundrc?
>
I do this with a2dp, I'm sure the same could apply to sco.
I use an .asoundrc file which looks like this:

pcm.a2dpd {
=A0=A0=A0=A0=A0=A0=A0=A0type a2dpd
}

pcm.rs0 {
=A0=A0=A0=A0=A0=A0=A0=A0type plug
=A0=A0=A0=A0=A0=A0=A0=A0slave {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0pcm "a2dpd"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0rate 44100
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0format S16_LE
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0channels 2
=A0=A0=A0=A0=A0=A0=A0=A0}
}

pcm.!default {
=A0=A0=A0=A0=A0=A0=A0=A0type plug
=A0=A0=A0=A0=A0=A0=A0=A0slave.pcm "rs0"
}

----

It will resample the audio given to the a2dp plugin so it is always 44.1kHz.

Cheers,
Tim


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-05-15 21:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14 17:14 [Bluez-devel] skype and bluetooth John H.
2007-05-14 18:02 ` John H.
2007-05-15  0:00 ` Robert Huitl
2007-05-15  0:16   ` Robert Huitl
2007-05-15 20:22   ` Robert Huitl
2007-05-15 21:20     ` Tim Chick [this message]
2007-05-16  0:21       ` Robert Huitl
2007-05-16  2:26         ` John H.
2007-05-16  8:02           ` Robert Huitl
2007-05-16 21:37             ` John H.

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=200705152220.58038.chick@computergeek.freeserve.co.uk \
    --to=chick@computergeek.freeserve.co.uk \
    --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