Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Octo-soundcard for the Raspi, question

To: [email protected]
Subject: Re: LF: Octo-soundcard for the Raspi, question
From: Paul Nicholson <[email protected]>
Date: Fri, 23 Jun 2017 17:56:42 +0000
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abelian.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject: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=wPaRp8TYwQ8lmdKGMIQG8RahxckMCE7THN/xCJMXk+8=; b=EyqUA4LzgTS+JCmU5ROoAUqc2B vqnr0Sk8nXB3mLRgbpmUVP4j91hqXgfF4dPipZCF+TuWSbPstR42TWsEmWopL4sVM+LffChm8rM9o NIg3nP3pLVJh/UjKlSX+144NlAPo5UjH24xi/DrlIpQqGZnVeRiibXV1zkg1Hq3TahrQ=;
In-reply-to: <[email protected]>
References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Stefan wrote:

> So that's a factor 4. Why is the file 4 times larger
> than expected?

Because @raw3 is format float8 instead of int2 as you
expected.

@raw2 is int2 but the resampling into @raw defaults to
float8 again.

You can drop one of the stages:

 sudo vtcard –d hw:1,0 –r96000 –b32 –c8 –B @raw

 vtresample –r24000 –B @raw:1,2,3 @raw2,i2

 vtwrite –B @raw2 /media/usbstick

will have the desired effect because @raw2 is int2 format
and vtwrite always writes with the format of its input
stream.

If you don't need to tee anything else off @raw2,
you can pipeline it and save some overhead of the
circular buffer:

 vtresample –r24000 –B @raw:1,2,3 -- -,i2 |
   vtwrite –B @raw2 /media/usbstick

PS, you'll have to delete the existing files under /media/usbstick
(these will be f8 not i2), you can't mix formats in the same
signal database.

--
Paul Nicholson
--

<Prev in Thread] Current Thread [Next in Thread>