設定は「デジファイのおと」のHPに詳しく紹介されているのでそれを参照にしていただくことにして、ここでは自分の備忘録として設定を残しておく。
UPNPアダプター図 「デジファイのおと」のHPより
1. Upnpアダプター側のSDカード
eth0 192.168.2.1
eth1 10.0.0.1
lightmpd.conf
#
# lightmpd.conf-upnpgw
#
#
[network]
interface=eth0
address=192.168.2.1
gateway=192.168.0.0
netmask=255.255.255.0
nameserver=192.168.0.0
domain=mydomain.jp
[ntp]
server=192.168.0.0
ntpd=no
timezone=Asia/Tokyo
[network:player]
interface=eth1
address=10.0.0.1
netmask=255.255.255.252
[cpuaffinity]
type=0
[irqpriority]
setdefault=no
[telnetd]
# yes | no
enable=yes
port=23
[upmpdcli]
enable=yes
upnpiface = eth0
mpdhost=10.0.0.2
mpdport=6600
friendlyname=UpLightMpd
ohproductroom=UpLightMpd
openhome = 1
ohmetapersist = 1
logfilename=/var/log/upmpdcli.log
loglevel = 3
[polipo]
enable=yes
#
proxyAddress = 0.0.0.0
allowedClients = 10.0.0.2
#
chunkHighMark = 1024
chunkLowMark = 256
chunkCriticalMark = 768
objectHighMark = 2048
#
dnsQueryIPv6 = no
cacheIsShared = false
dnsUseGethostbyname = yes
disableConfiguration = true
disableIndexing = true
disableLocalInterface = true
[nat]
masquerade=network:player
dnsforwarding=yes
ntpforwarding=yes
8023=10.0.0.2:23
2.プレーヤー側のSDカード
eth0 10.0.0.2
lightmpd.conf
#
#
[network]
interface=eth0
address=10.0.0.2
netmask=255.255.255.252
gateway=10.0.0.1
nameserver=192.168.0.0
domain=mydomain.jp
[ntp]
server=192.168.0.0
ntpd=no
timezone=Asia/Tokyo
[nas:NASID1]
type=nfs
host=nashost1
remotedir=audio_data
proto=tcp
rsize=65536
wsize=65536
#[nas:NASID2]
# type=cifs
# host=nashost2
# remotedir=audio_data
# remoteuser=usrid
# remotepass=passwd
# iocharset=utf8
# file_mode=0644
# dir_mode=0755
# rsize=61440
# wsize=65536
[mpd]
load_module=mpd-0.19.14rt-native-dsd
music_directory=NASID1/Music
playlist_directory=NASID1/mpd/playlists
db_file=NASID1/mpd/tag_cache
sticker_file=NASID1/mpd/sticker.sql
# log_file=NASID1/mpd/mpd.log
log_file=/dev/null
[httpd]
# yes | no
enable=yes
port=80
[telnetd]
# yes | no
enable=yes
port=23
[ympd]
# yes | no
enable=no
webport=8080
mpdport=6600
[webconsole]
# yes | no
# start page: http://thishost:${port}/index.html
enable=yes
port=9000
[cpuaffinity]
# 0 normal
# 1 cpu1: usb irq handler
type=1
[debug]
interfaces=yes
resolvconf=yes
ntpd=yes
ntpconf=yes
ifconfig=yes
cards=yes
mounts=yes
ps=yes
mpdversion=yes
date=yes
ntpq=yes
music=yes
messages=yes
save=no
mpd.conf
#
#
realtime_option {
memlock "yes"
stack_reserve "2048"
heap_reserve "10240"
main_priority "OTHER:0"
player_priority "FIFO:53"
decoder_priority "OTHER:0"
update_priority "OTHER:0"
}
audio_output {
type "alsa"
name "uda"
device "hw:0,0"
priority "FIFO:54"
mixer_type "disabled"
# dsd_usb "yes"
# dsd_native "yes"
# dsd_native_type "2"
native_dsd "yes"
native_dsd_type "3"
buffer_time "150000"
period_time "37500"
}
###### decoder selector
# decoder_selector {
# suffix "mp3"
# plugin "mad"
# }
# decoder_selector {
# suffix "m4a"
# plugin "ffmpeg"
# }
# decoder_selector {
# suffix "wav"
# plugin "audiofile"
# scan_plugin "ffmpeg"
# }
# decoder_selector {
# suffix "flac"
# plugin "flac"
# }
database {
plugin "simple"
path "/var/lib/mpd/tag_cache"
compress "no"
}
#
music_directory "/var/lib/mpd/Music"
playlist_directory "/var/lib/mpd/playlists"
#sticker_file "/var/lib/mpd/sticker.sql"
log_file "/var/lib/mpd/mpd.log"
pid_file "/var/run/mpd.pid"
state_file "/var/lib/mpd/state"
user "root"
group "root"
bind_to_address "any"
port "6600"
#
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
metadata_to_use "artist,album,title,track,genre,date,disc"
#audio_output_format "96000:24:2"
#
# extended audio format
#audio_output_format "X4L4:24:2"
#LIBSAMPLERATE
#samplerate_converter "Best Sinc Interpolator"
#samplearte_converter "Medium Sinc Interpolator"
#samplearte_converter "Fastest Sinc Interpolator"
#samplearte_converter "ZOHc Interpolator"
#samplearte_converter "Linear Sinc Interpolator"
#samplearte_converter "internal"
# SOXR
samplerate_converter "soxr very high"
#samplerate_converter "soxr high"
#samplerate_converter "soxr medium"
#samplerate_converter "soxr low"
#samplerate_converter "soxr quick"
#
#samplerate_converter "soxr very high openmp"
#samplerate_converter "soxr high openmp"
#samplerate_converter "soxr medium openmp"
#samplerate_converter "soxr low openmp"
#samplerate_converter "soxr quick openmp"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
default_permissions "read,add,control,admin"
#
mixer_type "disabled"
#
audio_buffer_size "2048"
buffer_before_play "20%"
#
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
input {
plugin "curl"
proxy "10.0.0.1:8123"
}