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: DK7FC <[email protected]>
Date: Fri, 23 Jun 2017 23:10:09 +0200
In-reply-to: <[email protected]>
References: <[email protected]> <[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 (Windows; U; Windows NT 6.1; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
Hi Paul,

Thanks for the help.

Am 23.06.2017 19:56, schrieb Paul Nicholson:
Because @raw3 is format float8 instead of int2 as you
expected.
Hm, i did expect that @raw3 has the same format as @raw2 and that the only difference is the changed samplerate.

@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
All right. But what if the vtcat stage would be not obsolete for some reasons, how could i change the @raw3 format into ,i2 again? I tried vtresample -r24000 @raw2 @raw3,i2 but the the process aborts, i.e. it does not work like that.

and vtwrite always writes with the format of its input
stream.
I did expect that, RR.


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
Very good, i will do so.

73, Stefan

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