From: Chip McArtor <mcm262@psu.edu>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Twinkle and bluetooth headset's microphone
Date: Tue, 19 Feb 2008 22:54:28 -0500 [thread overview]
Message-ID: <47BBA474.3090505@psu.edu> (raw)
In-Reply-To: <d89ddf300802191909n62370002r1a3d883eb70ffbea@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1472 bytes --]
While we're on the topic of VoIP applications, I'm curious if anybody
has successfully combined Bluez's ALSA plugin with ALSA slave devices.
There's a VoIP app that I'd like to use with my headset that only
supports a 32kHz sampling rate. Because my bluetooth headset (using
"headset" profile) only supports an 8kHz sampling rate, I tried to use
an ALSA plugin for realtime rate conversion. This ALSA plugin works
perfectly with my main soundcard (emu10k1), but fails with the bluetooth
device.
I have defined the ALSA plugin to use the bluetooth device:
pcm.bluetooth {
type bluetooth
device 00:16:8F:08:8F:80
profile "auto"
}
pcm_slave.rate {
pcm bluetooth
format S16_LE
channels 1
rate 8000
}
pcm.complex_convert {
type plug
slave rate
}
ALSA doesn't seem to be the culprit, because defining the slave PCM with
"hw" as the master device instead of "bluetooth" will downsample any
incoming sound stream to 8kHz. But when I try using the device with my
bluetooth device, e.g.:
$ aplay -D 44100.wav
Playing WAVE '44100.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
The headset produces a buzzing noise (sounds like a 1kHz square wave),
and causes my system to hard lock a few seconds after aplay finishes.
Is there a known compatibility issue between Bluez and ALSA plugins? If
it's guaranteed to not work, would a sound daemon like Pulseaudio be a
decent compromise for realtime rate conversion?
Cheers,
Chip McArtor
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3283 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2008-02-20 3:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.551346.1203302340.26582.bluez-users@lists.sourceforge.net>
2008-02-19 21:11 ` [Bluez-users] Twinkle and bluetooth headset's microphone mountain rides
2008-02-19 22:58 ` Wolfgang Wershofen
2008-02-20 2:07 ` Leszek Koltunski
2008-02-20 3:09 ` Brad Midgley
2008-02-20 3:54 ` Chip McArtor [this message]
2008-03-11 17:19 ` Andrew Kohlsmith (lists)
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=47BBA474.3090505@psu.edu \
--to=mcm262@psu.edu \
--cc=bluez-users@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