I dont want to use aplay or arecord. I got mp4live (as file player), and want to read audio with this application. I've passed the param "infile:/home/carlos/record.raw" The problem is that mp4live shows an error: mp4live: pcm_params.c:2351: sndrv_pcm_hw_params: Assertion `err >= 0' failed. Aborted (core dumped) any idea? On 18/12/2007, Rene Herman <rene.herman@xxxxxxxxxxxx> wrote: > 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. > > > -- -------------------------------------- Universidad de Talca Facultad de Ingeniería Ingeniería Civil en Computación -------------------------------------- Movil +56 9 92624541 Skype dspcarlos ------------------------------------------------------------------------- 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