Re: File Plugin

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

 



On 18-12-07 05:32, Carlos Hernandez wrote:

> Can someone tell me how to correctly configure the file plugin to read
> audio from a file?...

This works:

pcm.infile {
          @args [ FILE ]
          @args.FILE {
                  type string
          }
          type file
          slave {
                  pcm null
          }
          file /dev/null
          infile $FILE
}

"arecord -D infile:foo.raw -f <format parameters> bar.wav" then records from
foo.raw which should be headerless PCM (ie, a .wav without the 44-byte
header) adhering to the format you tell arecord to expect trough -f/-r/-c.

Note that the reading process will not automatically stop after depleting
the file...

Rene.



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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