nas:网络声音服务

[撰文/hmy]

nas 即 Network Audio System。有时候有多个电脑,但是只有一个音响系统。可以在有音响的机器上跑 nasd。然后其他机器通过 8000/tcp 把声音信号发过去播放。nasd 是监听在默认的 8000/tcp 端口。

在客户端,比如用 mplayer 访问 nas 系统,需要在编译 mplayer 的时候支持 nas。然后用下面方法播放:

# AUDIOSERVER=tcp/10.0.0.2:8000 mplayer -ao nas file.avi

参考

http://www.radscan.com/nas.html

Read More:

  • » No related posts

10 Comments

  1. 1 daming000 Commented @ 2008-08-31 16:40Reply to this comment

    天哪

  2. 2 tayhe Commented @ 2008-08-31 17:07Reply to this comment

    这个想法太天才了

  3. 3 lyman Commented @ 2008-08-31 17:37Reply to this comment

    貌似 pulseaudio 也能干同样的事情?

    btw,NAS 这个提法很容易和 Network Attached Storage 混淆啊

  4. 4 mephisto Commented @ 2008-08-31 17:57Reply to this comment

    是的,pulseaudio也可以完成相同的功能。

  5. 5 hmy Commented @ 2008-08-31 17:59Reply to this comment

    不知道flash能不能把声音通过网络播放,一直在找这样的解决方案。

  6. 6 tommy Commented @ 2008-08-31 19:40Reply to this comment

    真是好办法。我现在两台电脑,经常要把耳机拔来拔去,用了nas应该就可以把耳机固定在一台电脑上了

  7. 7 rockee Commented @ 2008-09-01 0:46Reply to this comment

    @lyman: pulseaudio的确涵盖了nas所有的功能,而且不止于此。实际上它是一个统一了本地音频和网络音频的server/client架构。现有的arts,esd,oss都能借助wrapper通过pulseaudio导向网内任意的音频接口。

  8. 8 hmy Commented @ 2008-09-01 6:39Reply to this comment

    看来pulsaudio能让 flash 的声音也通过网络发送.

  9. 9 HH Commented @ 2008-09-01 10:15Reply to this comment

    要是二台电脑同时出声音怎么办? 那不是要成噪音?

  10. 10 iceFire Commented @ 2008-09-02 20:57Reply to this comment