NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/48090 (bthset to use pad devices and support 8 bit sco audio)
The following reply was made to PR bin/48090; it has been noted by GNATS.
From: Nat Sloss <nathanialsloss%yahoo.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/48090 (bthset to use pad devices and support 8 bit sco audio)
Date: Mon, 26 Aug 2013 11:18:15 +1000
Hi Iain,
While its possible to add mulaw, alaw and 8-bit slinear formats to pad. (I've
been experimenting) I've found a problem with the way this would work with
bthset using pad as I've seen the audio format change depending on what
you're trying to play. Also as far as I understand opening /dev/audio would
default to mulaw 8000hz mono, so bthset would have to set the audio
parameters after the program playing audio and I don't think this would be
easily implemented.
So far I don't think it is practical to do the audio conversion as apart of
pad. The tables I've included in bthset are duplicates fron mulaw.c and the
audio conversions are modified versions of audio filters fron auconv.c. I
think even though there is code duplication and bthset is bigger this is
simple solution to handling the different formats.
An interesting note the only other bluetooth sco audio formats that are not
supported so far are ulinear 8 and 16 bit, as I have no way of testing these
(not supported by my bluetooth adaptor) but I can submit my attempt at adding
support if you think it is a good idea.
Regards,
Nat.
Home |
Main Index |
Thread Index |
Old Index