BTA2DPD(8) | System Manager's Manual | BTA2DPD(8) |
bta2dpd
—
bta2dpd |
[-Dv ] [-A
bitpool_allocation] [-B
bitpool] [-b
blocks] [-d
device] [-e
encoding_bands] [-f
channel_mode] [-M
mtu] [-m
mode] [-r
rate] [-V
volume] -a
address files ... |
bta2dpd |
-K [-DIv ]
[-A bitpool_allocation]
[-B bitpool]
[-b blocks]
[-d device]
[-e encoding_bands]
[-f channel_mode]
[-m mode]
[-p psm]
[-r rate] [a
address] file |
bta2dpd |
-t [-A
bitpool_allocation] [-B
bitpool] [-b
blocks] [-e
encoding_bands] [-f
channel_mode] [-M
mtu] [-r
rate] [-V
volume] files ... |
bta2dpd |
-t -K
file |
bta2dpd
daemon is used to transmit/receive audio
to/from Bluetooth devices such as speakers or headphones, using the Advanced
Audio Distribution Profile (A2DP).
-a
addressIf a name was specified, bta2dpd
attempts to resolve the name via
bt_gethostbyname(3).
-B
bitpoolUse bta2dpd
with only the
-v
option and the maximum bitpool for your
device will be printed to stdout.
-D
-d
device-I
-K
-M
mtuFor most devices this would be 672 but if audio is broken or has gaps lowering this value may help.
-m
mode-p
psm-t
-K
to decode and
receive encoded music from stdout/stdin to file.-V
volumeUSE WITH CARE as this may mean the output is quite loud.
-v
-K
applied and bta2dpd
is
used as an audio sink.
When writing to a file or stdout it is raw 16-bit little endian (pulse coded modulation) PCM data. So a utility must be used to convert the file to add a header or use the audioplay(1) command as stated in EXAMPLES.
-f
channel_modeSpecifying joint stereo as opposed to stereo would allow for a
slightly higher quality of playback as bta2dpd
will only encode stereo and monophonic streams.
-r
rateA value of 0 will arbitrate from the highest to lowest frequency.
-A
bitpool_allocation-b
blocksIn the case of 0 the number of blocks is negotiated starting from 16 down to 4.
-e
bandsIt may be necessary to use
btconfig(8) to set the class
of your Bluetooth adapter to that of headphones when using
bta2dpd
as an audio sink. I.e.,
btconfig ubt0 class
0x200418
bta2dpd
with -K
before pairing.
This is necessary as some devices only perform an sdpquery(1) just after pairing and cache the result.
It is possible to specify multiples of -r
-e
-b
-f
. This will mean that the specified combinations
are reported as being accepted by the source/sink.
When used as a sink (-K
), all modes,
bands, blocks and allocation modes will be accepted unless specified as
options. I.e., -r
44100 will
only accept a connection with a rate of 44.1kHz.
bta2dpd -a spkr my.wav
bta2dpd -a spkr /dev/pad
bta2dpd -K out.pcm
bta2dpd -K -a phone | audioplay -f -e
linear -P 16 -s 44100 -c 2 --
July 27, 2019 | NetBSD 9.4 |