Re: aplay rate - what is it for ?

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

 



Ran and list,

On Oct 8, 2015 09:29, "Ran Shalit" <ranshalit@xxxxxxxxx> wrote:
>
> Hello,
>
> I don't understand why rate is required when we play PCM file.
> The sample rate is already encoded in file header, so why would aplay
> need this parameter ?
>
> Thanks,
> Ran

Did you read the man page?

Looks to me like aplay and arecord are the same binary, so the rate is of interest when recording. And apparently when playing a raw PCM file which doesn't have a header. The man page states that sample rate can be determined from the file header...

------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux