Re: PCM parameters in file plugin

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

 



Pavel Hofman napsal(a):
> Hello,
> 
> I am working on a file plugin patch to allow adding PCM parameters 
> (rate, format) to  the name of the file created (plus the ability to run 
> an external command via popen, such as upsampling with sox). I got stuck 
> in trying to obtain these parameters in pcm_file.c:_snd_pcm_file_open(). 
> Is it actually possible or the information is not available at the time 
> of opening the file (and the whole patch is thus nonsense)?
> 
> Thanks a lot for help.
> 

I am now opening the output file in pcm_file.c:snd_pcm_file_write_bytes.
Surprisingly it seems to work fine. Could such hack be accepted as a
patch to the plugin (if coded properly)? Is there a better place to open 
the file?

Thanks,

Pavel.


-- 
-----------------

inSITE, s.r.o.

Rubesova 29, 326 00 Plzen
Tel. +420 377 449 358
Fax  +420 222 745 553
GSM: +420 603 163 973
Email: pavel.hofman@xxxxxxxxx

www.educity.cz, www.jobcity.cz
www.meetings.cz, www.hrzive.cz
www.comben.cz, www.insite.cz

-------------------------------
Navstivte www.educity.cz, server
s nejvetsi nabidkou profesniho
vzdelavani na ceskem internetu.

_______________________________________________
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