Difference between revisions of "Other hardware"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
(A2DP)
(A2DP)
Line 20: Line 20:
 
* AptX, LDAC, LLDC: in general lower complexity but higher bitrate (still within BT limits) than AAC, transparency possible; AptX and LDAC has wide support
 
* AptX, LDAC, LLDC: in general lower complexity but higher bitrate (still within BT limits) than AAC, transparency possible; AptX and LDAC has wide support
 
* FastStream: Qualcomm's bidirectional SBC variant, providing a mono back channel
 
* FastStream: Qualcomm's bidirectional SBC variant, providing a mono back channel
* Opus 0.5: PipeWire's little experiment with nearly unlimited channels in either direction.
+
* Opus 0.5: PipeWire's [https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/434cc6a90b6cdbaa31f013fea95786e1f5bf6d88/spa/plugins/bluez5/README-OPUS-A2DP.md little experiment] with nearly unlimited channels in either direction. Zero hardware support.
* Opus Android: The [https://hydrogenaud.io/index.php/topic,114566.msg1023511.html#msg1023511 Android 11] approach to adding Opus support. Stereo only, could be bidirectional? (check a2dp_vendor_opus_constants.h!)
+
* Opus Android: The [https://hydrogenaud.io/index.php/topic,114566.msg1023511.html#msg1023511 Android 13] approach to adding Opus support. Stereo only, could be bidirectional? (check a2dp_vendor_opus_constants.h!) Supported by Pixel headphones.
  
 
Bitrate is limited by bluetooth link. For all relevant codecs, there is a maximum limit of 2 channels: this is a headphone protocol, not a speaker protocol. Microphone-back channel is not available except in FastStream and AptX LL duplex.
 
Bitrate is limited by bluetooth link. For all relevant codecs, there is a maximum limit of 2 channels: this is a headphone protocol, not a speaker protocol. Microphone-back channel is not available except in FastStream and AptX LL duplex.

Revision as of 11:49, 6 July 2023

Bluetooth

A2DP

Advanced Audio Distribution Profile (A2DP) is the traditional

Standard baseline codecs:

  • Sub Band Codec (SBC) – okay, not great

Standard optional codecs:

  • MPEG-1,2 Audio: = MP3, almost never used
  • AAC: relatively good decode support, transparency possible at bluetooth bitrates, but latency can be an issue
  • ATRAC: never used

Vendor extension codecs:

  • AptX, LDAC, LLDC: in general lower complexity but higher bitrate (still within BT limits) than AAC, transparency possible; AptX and LDAC has wide support
  • FastStream: Qualcomm's bidirectional SBC variant, providing a mono back channel
  • Opus 0.5: PipeWire's little experiment with nearly unlimited channels in either direction. Zero hardware support.
  • Opus Android: The Android 13 approach to adding Opus support. Stereo only, could be bidirectional? (check a2dp_vendor_opus_constants.h!) Supported by Pixel headphones.

Bitrate is limited by bluetooth link. For all relevant codecs, there is a maximum limit of 2 channels: this is a headphone protocol, not a speaker protocol. Microphone-back channel is not available except in FastStream and AptX LL duplex.

Sub Band Codec

  • Sampling Frequency - 16000, 32000, 44100, 48000 (some are optional, see references)
  • Channel Mode - mono, dual channel, stereo, joint stereo

The bitrate used for CD-quality () audio is 229 kbps and 328 kbps for middle and high quality, respectively.

Reference: BLUETOOTH Advanced Audio Distribution Profile 1.0

HSP/HFP

This is the mode with mono input and output, both at voice sample rates. Only very crude encodings (CVSD, PCM, optionally SBC 16KHz) are supported, so do not expect audio quality.

LE Audio

This is the new, rewritten general-purpose bluetooth audio stack. LC3 is the baseline codec.

  • It's allegedly "better than Opus" with respect to error tolerance in speech environments. Except the test is done with speech samples in the non-speech, non-FEC mode of Opus (CELT), and an old version at that.
  • LC3plus, the "high-res" branch, is worse than Apple and Android (FDK) AAC at 144 kbps. So LC3 is probably not as good as Opus after all.

Headphones

Some Styles (smallest to largest)

  • In the ear - outputs directly into the ear canal
  • Earbuds - sits in the outer ear
  • Supra-aural - sits on the ear
  • circumaural - completely cover the ear

Terminology used for comparing headphones

  • Noise Cancelling
    • active
    • passive
  • Frequency response - The range of frequencies the headphones can reproduce
  • Impedance - Doesn't mean much by itself, but in general, impedence should be matched across a system.
  • SPL@1kHz, 1V rms - Sound Pressure Level. How efficient the unit converts electrical energy to sound energy.
  • Neodymium - The magnet of choice for high end headphones.

Popular Headphones

  • Sub $30
  • Sub $100
  • $100 - $300
  • $300+