From owner-freebsd-multimedia@FreeBSD.ORG Sat May 21 17:56:42 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DFDF1065674 for ; Sat, 21 May 2011 17:56:42 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C885C8FC12 for ; Sat, 21 May 2011 17:56:41 +0000 (UTC) Received: by fxm11 with SMTP id 11so4502977fxm.13 for ; Sat, 21 May 2011 10:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=S/cA4j9qjUH8Luvf/N5qlk8/TOmtAZm90LuK+R9y6Nc=; b=Bex8ri+g5B7gQKTgZJGZ78XUUjGPIGQL1wKhB5oGfhQ52bp2tKASJgZHcG8cbxmSH3 YGII114NLm91Q3SRSbs2GiddRx0hY4nPIcFxfsqJJPuZTy96d7Lu/M4o7Z73Yiebwu31 SD+1lvd/Z5UalA0AoaXpLNkPK83ZBt632bJCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uPgfNIaYwSeBWbZN/NcuZfejpZmZCONJdFgBeZr33N9MbZZ7nDs2d97Owmec/KtjHH Nwh2M42kw4cRSqMZffoOI0HEYqbqnzFJ8yyovIbXC5wGPQlUL9tOaTCiKlTxTJk+CfAS FLT7daw6F9Cz/wzNOjfWbQywMXOuSulXZ/AH4= MIME-Version: 1.0 Received: by 10.223.160.131 with SMTP id n3mr759464fax.111.1305999174538; Sat, 21 May 2011 10:32:54 -0700 (PDT) Received: by 10.223.78.129 with HTTP; Sat, 21 May 2011 10:32:54 -0700 (PDT) In-Reply-To: <20110521131631.037e25ed.torfinn.ingolfsen@broadpark.no> References: <20110521003624.6264b89d.torfinn.ingolfsen@broadpark.no> <20110521131631.037e25ed.torfinn.ingolfsen@broadpark.no> Date: Sat, 21 May 2011 12:32:54 -0500 Message-ID: From: Zhihao Yuan To: Torfinn Ingolfsen Content-Type: text/plain; charset=UTF-8 Cc: freebsd-multimedia@freebsd.org Subject: Re: native sound tools in FreeBSD? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 17:56:42 -0000 On Sat, May 21, 2011 at 6:16 AM, Torfinn Ingolfsen wrote: > Hi again, > > On Sat, 21 May 2011 00:36:24 +0200 > Torfinn Ingolfsen wrote: > >> Hello, >> >> Quick question: do we have any sound tools in FreeBSD that are >> considered "native" (in other words, that comes with FreeBSD, without >> installing any ports)? >> I'm thinking of tools like these: >> http://manuals.opensound.com/usersguide/ossplay.html >> http://manuals.opensound.com/usersguide/ossrecord.html >> http://manuals.opensound.com/usersguide/osstest.html >> > > Somedays, my thinking isn't at its best. A simple 'cat' or redirection > works well for this purpose: > "record" from dsp1 and playback on dsp0: > cat /dev/dsp1.0 > /dev/dsp0.0 > > record to file, with playback while recording: > tee soundfile.test < /dev/dsp1.0 > /dev/dsp0.0 > > and playback of the file afterwards: > cat soundfile.test > /dev/dsp0.0 > > And it all works. Nice! Not really. By using the devices directly, you can not setup the parameters for the devices, and you can not play/record formated soundfile correctly, like WAV. So these tools, ossplay and others, are really essential. But may not be that essential for a base system. > -- > Torfinn > > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > -- Zhihao Yuan The best way to predict the future is to invent it.