From: Peter Gregory <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Saturday, October 25, 2014 at 5:17 PM To: "[email protected]" <[email protected]> Subject: Re: [beagleboard] Re: BBB and ADS InstantFM Music
> A strange issue. > I can tune the radio using > v4l2-ctl -d /dev/radio0 -c volume=10,mute=0 -f 91.1 --all > > I can then stream the radio audio to a file using > arecord -D hw:1,0 -c2 -fS16_LE -r48000 > audio.wav > > When I play back the recorded file, it sounds great. > aplay audio.wav > > I should be able to stream the audio live using > arecord -D hw:1,0 -c2 -fS16_LE -r48000 | aplay > > however, all I get is a blip of noise each sample instead of the whole sample. > Something about piping the input from record to aplay is failing. > Anyone know what is going on? Probably something to do with automatic format conversion. Use the -vv option to see what the hardware format is and then what the audio file format is. The sound subsystem can do both rate and format conversion. Are you sure your hardware is outputting signed 16bit Little Endian format and that the rate is 48kHz? My bet is that your hardware is outputting something different, and arecord is doing the conversion to store in S16_LE and at a rate of 48KHz. Regards, John > > Beaglebone Black > Debian 7.6 Kernel 3.14 Alsa drivers. > Sound card: USB sound adapter HW:0 > Radio Tuner: USB InstantFM Radio HW:1 > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
