4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PulseAudioで他の端末から音を出す

Last updated at Posted at 2015-05-22

ubuntu 15.04

参考

設定

PulseAudioインストール
apt-get install -y pulseaudio
/etc/pulse/default.pa
- #load-module module-native-protocol-tcp
+ load-module module-native-protocol-tcp auth-ip-acl=127.0.0.0/8

これで 127.0.0.0/8 からのアクセスはcookie認証なしでできる。

再起動
pulseaudio --kill
pulseaudio --start

この端末自身で音が出ることを確認。
(もしalsamixer にてS/PDIFがMMになっていたら解除。)

音を出したい端末の設定

127.0.1.1 が pulseaudio

環境変数をセット
PULSE_SERVER=tcp:127.0.1.1:4713

(4713ポートでない場合はnestat -anp | grep pulseaudioでLISTENポートを確認。)

音を鳴らす
mplayer a.mp3
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?