Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active August 8, 2019 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/37c7b7fd6c494f76141e8b79a15e0648 to your computer and use it in GitHub Desktop.
Save mamemomonga/37c7b7fd6c494f76141e8b79a15e0648 to your computer and use it in GitHub Desktop.
Volumio+HP-A3

Volumio2 + Raspberry Pi 3 + FOSTEX HP-A3

  • FOSTEX HP-A3を使用するとSpotify Connect Pluginがどうも不安定。時々再生がとまってしまうため、ALSAでdmixを経由することにする。
  • Volumio2でMIXERをSoftwareに変更する(このとき/etc/asound.confが生成される)
  • HP-A3はレートは96000Hz固定、解像度はS16_LE、S24_3LE固定。デフォルトだと96000/S16_LEとなるので、96000/S24_3LEに変換する
# speexサンプルレートコンバータを使用
# libasound2-pluginsが必要
# apt install libasound2-plugins
defaults.pcm.rate_converter "speexrate_best"
pcm.softvolume {
type plug
slave.pcm "softvol"
}
pcm.softvol {
type softvol
slave {
pcm "pcm.dmixer"
}
control {
name "SoftMaster"
card 1
device 0
}
max_dB 0.0
min_dB -50.0
resolution 100
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
# FOSTEX HP-A3(aplay -lで確認)
pcm "hw:1,0"
rate 96000
format S24_3LE
period_time 0
period_size 1024
buffer_size 8192
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment