2014年1月19日日曜日

RaspyFi:音切れ対策

音切れするぞ~(T_T)

やっと落ち着いて聴く時間がとれた。
ところが、何と音切れしてるではないですか。。。
結局、メンテナンス作業です(^_^;)

先日、ラジオを聴くためバッファの調整はしたが、原因が違うようだ。
もう一つの原因としてネットでよく見かけるのが、
ログ出力による負荷増大に伴う問題のようだ。
対策として、ログ出力を停止してみよう。

1.ALSAの設定ファイルの確認
pi@Raspyfi:~$ ls /etc/modprobe.d/
alsa-base-blacklist.conf  alsa-base.conf  fbdev-blacklist.conf  local.conf

この中の、alsa-base.conf に
options snd-usb-audio nrpacks=1
の一行を「おまじない」として記入すると停止できるようだ。

2.設定ファイルの編集
vi で編集します。
pi@Raspyfi:~$ sudo vi /etc/modprobe.d/alsa-base.conf

編集後の内容
最後の2行がコメントと「おまじない」です。
pi@Raspyfi:~$ cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
#options snd-usb-audio index=-2
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

# OTOGIRE TAISAKU LOG STOP
options snd-usb-audio nrpacks=1

3.システム変更なので再起動
pi@Raspyfi:~$ sudo shutdown -r now
Broadcast message from root@Raspyfi (pts/1) (Thu Jan 19 10:38:20 2014):
The system is going down for reboot NOW!

再起動後に、時間が取れたので確認のため聴いてみた。
16bit 44.1kHz/48kHz のWAV/FLAC ファイルはバッチリでした。

でも、2倍、4倍にアップサンプリングしたファイルは
やはり音切れしてしまいました。
ほとんどが44.1kHzなので良しとしましょう。

「Raspbian」にmpdを導入した時には全然問題なかったのに、
どうしたことだろう。。。

0 件のコメント:

コメントを投稿