X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:message-id:in-reply-to:references
	:subject:mime-version:content-type:content-transfer-encoding; q=
	dns; s=default; b=Vm5mVLS6ype8ObduZOq3i+Yjp88DN+D99oVCIJiMvDVq5P
	7ACNAPWhO+wszUjHtPWOpr7bxAIumJgqd/3eHMfnYRQxdmq5UlO481cFe9XRnjpd
	N/HRQMpfvY2eWzawSNifNFC8CnLBZVGBvGIvmGYws/5Ex9D0SkzlBlcWMGqic=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:message-id:in-reply-to:references
	:subject:mime-version:content-type:content-transfer-encoding; s=
	default; bh=U9EO09rHJV4L0pGX7ne7A4SvaNA=; b=Siqtk5J+TeuOFs1wpONK
	47xSVYw0fcbq0NQxuJuGTMma/3hhFZYLWxibeE5oOjNwiMUXUThLMK2CHcnr1kdJ
	2saT0BOPSHTRpa2k0i6i+vOdeszpb3nCt+7gmMRiDJ1ogoYO7BHBRW3jj0Jlx7HW
	1k8XXS1QdroXMq0hUHr0cng=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_50,SPF_NEUTRAL,URI_HEX autolearn=no version=3.3.2
X-HELO: sam.nabble.com
Date: Tue, 18 Mar 2014 17:49:48 -0700 (PDT)
From: PolarStorm <developer@clinicsearch.com>
To: cygwin@cygwin.com
Message-ID: <1395190188105-107200.post@n5.nabble.com>
In-Reply-To: <53289E8A.1010601@tiscali.co.uk>
References: <20140310111427.GE2828@calimero.vinschen.de> <5324E98D.2090806@tiscali.co.uk> <20140316114332.GB400@calimero.vinschen.de> <5326276F.1050103@tiscali.co.uk> <20140317015736.GA8086@ednor.casa.cgf.cx> <20140317022829.GB8086@ednor.casa.cgf.cx> <20140317044230.GA1235@ednor.casa.cgf.cx> <53278AE6.9040509@tiscali.co.uk> <20140318175353.GA1051@ednor.casa.cgf.cx> <53289E8A.1010601@tiscali.co.uk>
Subject: Re: sox - package is broken
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

David Stacey wrote
> I was testing with
>      cat ding.wav > /dev/dsp
> This gives a segmentation fault with the latest (2014-03-18) snapshot; 
> no sound is heard However, if I repeat your test:
>      cp ding.wav /dev/dsp
> Then that works and the ding dings. Which confuses me greatly - I've 
> been using *nix for nearly 20 years, and I honestly would have said that 
> the two lines above were synonymous - they're obviously not!

Two things I can think of:

1) With "cat" the output file is created/handled by the shell, whereas "cp"
is doing its own file creation. You should see what's going on by:
   strace cat ding.wav > /dev/dsp
   strace cp ding.wav /dev/dsp

2) Cat is trying to expand sparse files and perhaps it thinks of your
ding.wav as containing sparse data?

Also, I would guess, that the dsp driver should handle bit streamed input
differently than a block copy/dump? 



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Re-sox-package-is-broken-tp106970p107200.html
Sent from the Cygwin list mailing list archive at Nabble.com.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

