
Ubuntu日本語フォーラム

ログインしていません。
Templerさん による投稿:
ハードウェアが多重音声(複数のアプリによる同時出力)に対応していればALSAでも多重音声は利きます。
あら。そうなんですか?
てっきりpulseか、esoundのようなサウンドサーバが必須と思っていました。
そういえば私のも10年以上前のもの(SB128-PCI)だったり。。
Templerさん による投稿:
Pulseが上手くいかなかったらで良いのですが、ALSAで試してみてはどうでしょう(pulseを削除する)。
実は、結構手詰まりでして、もし#24の対応をとっても動かなかった場合、自分の手に余る気がしています。とはいえ素のAlsaの方は、自分はよく解らないので。。
議論に参加いただけると助かります。
オフライン
Templerさんのご指摘を受け、BIOSでHDA(high definition audio)を停止させました。
#24の方法を試しましたが以前として音がでません。
これ以上解決策がでなければpulseを止めた方がいいのかもしれませんね。
オフライン
動かせている人はいるし、情報としても出揃ったはずなので、#1~#24のpulse関連の設定で、設定し忘れているものがあるのか、逆に間違った設定となってしまっていて、適用してはいけないものが含まれているのかも知れません。
pulse方面で設定に挑戦し続けるのであれば、現在の/etc/pulse/default.paと/etc/pulse/daemon.confの内容、および、syslogのpulse関連のエラーメッセージを投稿下さい。
pulseを引っこ抜いても、あとですぐに戻せるので、一旦、pulseを諦めてalsa onlyに挑戦するのもありかとは思います。
オフライン
もう少しpulseで頑張ってみます。
なんで音が出ないんでしょうね。。。設定を一から見直してみます。
$ cat /etc/pulse/daemon.conf # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values a commented out. Use either ; or # for ## commenting. ; daemonize = no ; fail = yes ; disallow-module-loading = no ; disallow-exit = no ; use-pid-file = yes ; system-instance = no ; disable-shm = no ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; high-priority = yes ; nice-level = -11 ; realtime-scheduling = no ; realtime-priority = 5 ; exit-idle-time = 20 ; module-idle-time = 20 ; scache-idle-time = 20 ; dl-search-path = (depends on architecture) ; load-default-script-file = yes ; default-script-file = ; log-target = auto ; log-level = notice resample-method = src-linear ; disable-remixing = no ; disable-lfe-remixing = yes ; no-cpu-limit = no ; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rtttime = 1000000 ; default-sample-format = s16le ; default-sample-rate = 44100 ; default-sample-channels = 2 default-fragments = 8 default-fragment-size-msec = 10
$ cat /etc/pulse/default.pa #!/usr/bin/pulseaudio -nF # # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. # This startup script is used only if PulseAudio is started per-user # (i.e. not in system mode) .nofail ### Load something into the sample cache #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav #load-sample-lazy pulse-access /usr/share/sounds/generic.wav load-sample-dir-lazy /usr/share/sounds/ubuntu/stereo .fail ### Load additional modules from GConf settings. This can be configured with the paprefs tool. ### Please keep in mind that the modules configured by paprefs might conflict with manually ### loaded modules. .ifexists module-gconf.so .nofail load-module module-gconf .fail .endif ### Automatically suspend sinks/sources that become idle for too long load-module module-suspend-on-idle ### Automatically restore the volume of streams and devices load-module module-device-restore load-module module-stream-restore ### Load audio drivers statically (it's probably better to not load ### these drivers manually, but instead use module-hal-detect -- ### see below -- for doing this automatically) #load-module module-alsa-sink #load-module module-alsa-source device=hw:1,0 #load-module module-oss device="/dev/dsp" sink_name=output source_name=input #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input #load-module module-null-sink #load-module module-pipe-sink ### Automatically load driver modules depending on the hardware available .ifexists module-hal-detect.so load-module module-hal-detect tsched=0 .else ### Alternatively use the static hardware detection module (for systems that ### lack HAL support) load-module module-detect .endif ### Automatically load driver modules for Bluetooth hardware #.ifexists module-bluetooth-discover.so #load-module module-bluetooth-discover #.endif ### Load several protocols .ifexists module-esound-protocol-unix.so load-module module-esound-protocol-unix .endif load-module module-native-protocol-unix ### Network access (may be configured with paprefs, so leave this commented ### here if you plan to use paprefs) #load-module module-esound-protocol-tcp #load-module module-native-protocol-tcp #load-module module-zeroconf-publish ### Load the RTP reciever module (also configured via paprefs, see above) #load-module module-rtp-recv ### Load the RTP sender module (also configured via paprefs, see above) #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink" #load-module module-rtp-send source=rtp.monitor ### Automatically restore the default sink/source when changed by the user during runtime load-module module-default-device-restore ### Automatically move streams to the default sink if the sink they are ### connected to dies, similar for sources load-module module-rescue-streams ### Make sure we always have a sink around, even if it is a null sink. load-module module-always-sink ### If autoexit on idle is enabled we want to make sure we only quit ### when no local session needs us anymore. load-module module-console-kit ### Enable positioned event sounds load-module module-position-event-sounds # X11 modules should not be started from default.pa so that one daemon # can be shared by multiple sessions. ### Load X11 bell module #load-module module-x11-bell sample=bell-windowing-system ### Register ourselves in the X11 session manager #load-module module-x11-xsmp ### Publish connection data in the X11 root window #.ifexists module-x11-publish.so #.nofail #load-module module-x11-publish #.fail #.endif ### Make some devices default #set-default-sink output #set-default-source input
$ cat /var/log/syslog | grep -i pulse Aug 29 11:02:36 123-desktop pulseaudio[11957]: pid.c: Stale PID file, overwriting. Aug 29 11:02:36 123-desktop pulseaudio[11957]: alsa-util.c: Device front:0 doesn't support sample format s16le, changed to s32le. Aug 29 11:02:36 123-desktop pulseaudio[11957]: alsa-util.c: Cannot find fallback mixer control "PCM" or mixer control is no combination of switch/volume. Aug 29 11:02:36 123-desktop pulseaudio[11957]: alsa-util.c: Device front:0 doesn't support sample format s16le, changed to s32le. Aug 29 11:02:36 123-desktop pulseaudio[11957]: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume.
オフライン
http://donkun3.blogspot.com/2009/04/pulseaudio-spdif.html
の4/30のエントリの内容が反映されていないような。。
オフライン
音が出るようになりました!!!
どうもありがとうございます。
疑問に思いつつこちらを実行してました。
Ubuntuでサスペンドから復帰した後音が出ない
初心者なのでないとぞご勘弁ください。
オフライン
ここまで一緒に考えてくださってどうもありがとうざいました。
助かりました。本当にありがとうとざいます!
オフライン
最近では、自動で認識できないデバイスはむしろ少ないので不運でしたが、なんとか解決してよかったです。
かなり複雑なケースだったので、今後のアップグレード(10月末には利用可能になるはず)等々に備え、今回変更したり新規作成したファイル類は、しっかりバックアップをとっておいて下さい。
オフライン
9.10リリースと共にアップグレードするつもりなのでちゃんとバックアップしておきます。
どうもありがとうございました。
オフライン
最後にひとつだけ質問させてください。
#22で/etc/asound.confを
pcm.ice1724 {
type hw
card 0
}
ctl.ice1724 {
type hw
card 0
}のように編集しましたが、これは放置したほうがいいのでしょうか?
元々はなかったので消したほうがいいのでしょうか?
オフライン
説明不足でしたね。
#8のAlsaのサイトにあるように、~/.asoundrcに、#22で示した設定を書くように指示がありました。
ユーザ毎の設定であれば~/.asoundrcになるのですが、システムワイドな設定であれば、/etc/asound.confになるはずです。
なので、残して置いた方が良いと考えます。
今、現在、その設定ファイルを置いた状態で動いているのであれば、とりあえず残しておいても害はないでしょう。
ただ、本当に必要な設定がなんだったのか知りたいということであれば、一度、/etc/asound.conf.bakなどと名前を変更して、
再起動すれば必要か不要かの切り分けはできます。明示的な指定が無い場合、適当なデフォルト値で動くプログラムも多いので
なくても問題ないかも知れません。
正直なところ、やってみないと、必要か不要か判らないです。
オフライン
今度機会があれば切り離してみます。現状ではあっても害はなさそうなのでそっとしておきます。
どうもありがとうございます。いろいろ勉強になりました。
オフライン
本当に今更ですが(ついさっき見つけたところです)、pulse抜きのalsa単品で複数音源からの音を出すのは下記の設定でいけるのかも知れません。
http://alsa.opensrc.org/DmixPlugin#8._Dmixing_the_Audiophile_192_.28ice1724.29
個人的にはpulseがubuntu標準なので、アップグレード時の面倒を避けたり、情報収集の容易さの面からpulseの方がお奨めなのですが、ice1724でググってきた人がいた場合に備えてポインタだけはっておきます。
オフライン
> pulse抜きのalsa単品で複数音源からの音を出すのは下記の設定でいけるのかも知れません。
ハードウェアが対応していれば何もせずに多重化されますので、まずは設定を施さずに試した方が良いと思います。
私の環境でも「5880B(これもSBモドキです)」「YMF744B」のどちらも手を施しておりません。単にPulseを削除し、アプリの出力デバイスを「alsa」にしているだけです。
それで多重化されないようなら設定が必要となるでしょうけど、その場合はALSAで多重化させるよりもPulseで行った方が良いと思います。
というか、今後のためにも、やはりPulseの方が安全でしょう。
オフライン