On Thu, Oct 8, 2015 at 7:55 PM, chris hermansen <clhermansen@xxxxxxxxx> wrote: > 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... Hi Christ, I actually did read the man page, and re-read it now, but I didn't find it mention. " -r, --rate=#<Hz> Sampling rate in Hertz. The default rate is 8000 Hertz." Thanks, Ran ------------------------------------------------------------------------------ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user