From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 994031F42B for ; Fri, 10 Nov 2017 14:18:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1eDA8W-0008LI-Lv; Fri, 10 Nov 2017 14:18:24 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eDA8V-0008L7-Jw for sox-users@lists.sourceforge.net; Fri, 10 Nov 2017 14:18:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BYGMA1eB+FDfDiThogdq9OnlpYs0UzSYp2ftHTrqzEI=; b=KSNUAcnhHSRqjFLahE7AdwDzYN WJCLmtPCo7oX0lOedLW1CpnxZbv79MoLOgJcv26PSI3UtelDeExgd91yadGIsbQHw9AepDmmORsOp fdlwpVAsSNH4T4NxItHAUqeBKgMJLTHivNgFWf7IztrFYjLxbICfyryGde1OIUtzv7qA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BYGMA1eB+FDfDiThogdq9OnlpYs0UzSYp2ftHTrqzEI=; b=Wz73GcwVLqQaX2pzmm6asWTqhY IlT8Z5fJnW2D/7lsOZOvVlbezO1ZkTz7RUMFx/uBfATMVXn0al6GI8/ZbMKegXzWsEjUSNSz6JolQ ZKMNQ3Lkgy75Uw9Mkh6MvXbrx1Q3Y3YSFGMMvuIOmlIKPeFiyXftFVLOoi5TcZ1R9/FY=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1eDA8Q-0004R0-3d for sox-users@lists.sourceforge.net; Fri, 10 Nov 2017 14:18:23 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id EC8AA15607; Fri, 10 Nov 2017 14:18:11 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: sox-users@lists.sourceforge.net References: <20171110133044.GA14739@www.stare.cz> Date: Fri, 10 Nov 2017 14:18:11 +0000 In-Reply-To: (=?iso-8859-1?Q?=22M=E5ns_Rullg?= =?iso-8859-1?Q?=E5rd=22's?= message of "Fri, 10 Nov 2017 14:04:00 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1eDA8Q-0004R0-3d Subject: Re: specifying format of RAW files X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net M=E5ns Rullg=E5rd writes: > Jan Stary writes: > >> When playing RAW audio files, the specified format seems to >> only take effect for the first file. Subsequent files fail >> to play because of unspecified rate etc. >> >> $ play -c 1 -r 48000 -e float -b 32 pcm1.raw # OK >> $ play -c 1 -r 48000 -e float -b 32 pcm2.raw # OK >> $ play -c 1 -r 48000 -e float -b 32 pcm*.raw >> play FAIL formats: bad input format for file `pcm2.raw': >> sampling rate was not specified >> >> Is this intended, or should the specified format be used >> for the subsequent files as well? > > This is intentional. Format options apply to the following file only. > Having them apply to a sequence of raw files could of course be useful, > but I'm afraid this would require quite some work. Remember that these > same options will also override parameters in the file headers. Oh, and something like this should work in your case: $ play $(printf '-c 1 -r 48000 -e float -b 32 %s ' pcm*.raw) -- = M=E5ns Rullg=E5rd ---------------------------------------------------------------------------= --- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users