Re: Aplay Fails When Reading From stdin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 04 May 2018 19:51:05 +0200,
Jay Foster wrote:
> 
> I recently updated may alsa from 1.1.4.1 to 1.1.6.  I now noticed that
> aplay does not work properly (the same as 1.1.4.1) when reading the
> sound file data from stdin.  This might have something to do with the
> recent change with reading the sound file header.
> 
> With the previous version of aplay, aplay would report:
> 
> Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
> 
> With 1.1.6, aplay reports:
> 
> Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
> 
> This results in static/noise output.  If I explicitly add the '-f
> S16_LE -r 22050' options to aplay, then it does play correctly.
> 
> Is this a known bug and is there a fix?

It works fine on my system.

% aplay test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

% aplay < ~/test/test.wav
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

% aplay --version
aplay: version 1.1.6 by Jaroslav Kysela <perex@xxxxxxxx>


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux