Advice for audio recording

Hans Petter Selasky hps at selasky.org
Fri Oct 20 16:19:01 UTC 2017


On 10/20/17 17:37, Michael Reifenberger wrote:
> 
> Hi,
> I want to digitize some of my good-old records in 24bit/96khz FLAC.
> For this I found two nice gadgets which play together:
> 
> An 24bit/192khz ADC (AD24QS):  
> http://beis.de/Elektronik/ADDA24QS/ADDA24QS.html
> An USBAUDIO 2.0 compatible digital to USB converter (DA2USB): 
> http://beis.de/Elektronik/DA2USB/DA2USB.html
>    (Its a recording-only device)
> 
> After setting the AD24QS to 96khz professional mode and connecting the 
> DA2USB to the computer,
> on FreeBSD-11-stable (r322118) the DA2USB device is found as:
> 
> ugen0.6: <Beis.deCKZ DA2USB-96000Hz24> at usbus0
> uaudio0 on uhub0
> uaudio0: <Beis.deCKZ DA2USB-96000Hz24, class 0/0, rev 1.10/1.08, addr 
> 11> on usbus0
> uaudio0: No playback.
> uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
> uaudio0: No MIDI sequencer.
> pcm4: <USB audio> on uaudio0
> uaudio0: No HID volume keys found.
> 
> /dev/dsp4.0 gets created.
> 
> (zb3)(root) # sysctl -a | grep pcm.4
> dev.pcm.4.feedback_rate: 0
> dev.pcm.4.bitperfect: 0
> dev.pcm.4.buffersize: 0
> dev.pcm.4.rec.vchanformat: s16le:2.0
> dev.pcm.4.rec.vchanrate: 96000
> dev.pcm.4.rec.vchanmode: fixed
> dev.pcm.4.rec.vchans: 1
> dev.pcm.4.hwvol_mixer: vol
> dev.pcm.4.hwvol_step: 5
> dev.pcm.4.%parent: uaudio0
> dev.pcm.4.%pnpinfo:
> dev.pcm.4.%location:
> dev.pcm.4.%driver: pcm
> dev.pcm.4.%desc: USB audio
> 
> (Hmm, why dev.pcm.4.rec.vchanformat: s16le:2.0 , shouldn't it be 
> s24le:2.0?)
> 
> But how to proceed further?
> (Preferred would be transcoding from the command line)
> 
> In audacity when trying to record from dsp4 in (24bit-PCM/96000hz) I get:
> A popup:
> ...
> Error opening sound device. Try changing the audio host, recording 
> device and the project sample rate.
> ...
> 
> STDERR:
> ...
> Expression 'ioctl( component->fd, streamMode == StreamMode_In ? 
> SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &bufInfo )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 1061
> Expression 'PaOssStreamComponent_Configure( component, sampleRate, 
> framesPerBuffer, StreamMode_Out, master )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 1145
> Expression 'PaOssStream_Configure( stream, sampleRate, framesPerBuffer, 
> &inLatency, &outLatency )' failed in 'src/hostapi/oss/pa_unix_oss.c', 
> line: 1251
> Expression 'ioctl( component->fd, streamMode == StreamMode_In ? 
> SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &bufInfo )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 1061
> Expression 'PaOssStreamComponent_Configure( component, sampleRate, 
> framesPerBuffer, StreamMode_Out, master )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 1145
> Expression 'PaOssStream_Configure( stream, sampleRate, framesPerBuffer, 
> &inLatency, &outLatency )' failed in 'src/hostapi/oss/pa_unix_oss.c', 
> line: 1251
> ...
> 
> And how to transcode on the command-line?

Hi,

virtual_oss in /usr/ports/audio/virtual_oss lets you stream the DSP 
device straight into a .wav file using "dd" and the command line.

Not sure if this is what you want.

Also there is something called "sox" which is the swiss army knife for 
resampling and changing formats from the command line.

--HPS


More information about the freebsd-multimedia mailing list