From: Robert Huitl <bluez-devel@huitl.de>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] skype and bluetooth
Date: Tue, 15 May 2007 22:22:11 +0200 [thread overview]
Message-ID: <200705152222.11641.bluez-devel@huitl.de> (raw)
In-Reply-To: <200705150200.43977.bluez-devel@huitl.de>
Okay after some debugging I know what the problem is.
On Dienstag, 15. Mai 2007, Robert Huitl wrote:
> 1) Skype tries to use a sample format that is not supported at all or
Skype uses the sample format SND_PCM_FORMAT_S16_LE which is supported by the
pcm_sco plugin, but it also requests a sampling rate of 48 KHz, which is not.
Having patched alsa-lib to trace the calls to snd_pcm_hw_params_set_rate*(), I
get the following output when I try to initiate a call:
DEBUG: snd_pcm_hw_params_set_rate_near(48000)
DEBUG: snd_pcm_hw_params_set_rate(48000)
[pause]
DEBUG: snd_pcm_hw_params_set_rate(48000)
[error message appears]
When I change SCO_RATE in pcm_sco.c from 8000 to 48000 and set the headset as
the input device only, Skype goes past the "problem with audio" message (the
recorded sound is garbage, of course).
So to conclude,
1.) 48 kHz is, to say the least, a rather high value for sampling from a
microphone. This is probably not intended by Skype and might just very well
be a bug as it's an alpha version.
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?
Regards,
Robert
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2007-05-15 20:22 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 [this message]
2007-05-15 21:20 ` Tim Chick
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=200705152222.11641.bluez-devel@huitl.de \
--to=bluez-devel@huitl.de \
--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