From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 21:05:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5F0D16A4CE for ; Fri, 27 Feb 2004 21:05:09 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C95443D1F for ; Fri, 27 Feb 2004 21:05:09 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i1S556Q4074838; Fri, 27 Feb 2004 23:05:06 -0600 (CST) (envelope-from dan) Date: Fri, 27 Feb 2004 23:05:06 -0600 From: Dan Nelson To: Zhang Weiwu Message-ID: <20040228050506.GE3471@dan.emsphone.com> References: <20040228035350.GD3471@dan.emsphone.com> <40401880.2060204@realss.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40401880.2060204@realss.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: questions@freebsd.org Subject: Re: a good solution share the speaker? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 05:05:09 -0000 In the last episode (Feb 28), Zhang Weiwu said: > Dan Nelson wrote: > > >In the last episode (Feb 28), Zhang Weiwu said: > > > > > >>Several people are using notebooks in the office, the big desktop > >>computer stores music. A good speaker is pluged into the desktop > >>computer (FreeBSD). > >> > >>What do you think is the best solution to share the speaker? > >> > >>These are what I can think of: > >>* Marc Lehmann wrote a perl module for playing music with mpg123. Write a > >>cgi script and let people select playlist/control play on the webpage. > >>* Find a existing good mpg123 frontend, modify it, let it control the > >>mpg123 on another computer through ssh or even let inetd bring up the > >>mpg123 player and let the fontend talk to a socket. > >> > >> > > > >http://www-scf.usc.edu/~bozhang/notes/esd.html describes how to use > >esound (which the mpg123 port is built with) to send audio to a remote > >machine. You could also use xmms, since it has esd support too. I > > That's a good idea. I am worrying that uncompressed sound takes lots of > bandwidth, some people in the office are using (average) 500Kbps > bluetooth link, uncompressed CD audio is 16*2*44100=1400Kbps, can esound > manipulate it? At that rate, Bluetooth is probably too slow for raw CD audio. Either of your two solutions would work. Option 2 is probably easier to implement and lets people keep their music files on their own machines. On the other hand, if your link goes down or the person goes out of range, you're in trouble. Option 1 keeps all the music files on the server. A little searching came up with http://www.jinzora.org/ , which is a PHP script that seems to implement Option 1 and then some. -- Dan Nelson dnelson@allantgroup.com