From: Pavel Hofman <pavel.hofman@insite.cz>
To: alsa-devel@alsa-project.org
Subject: Re: PCM parameters in file plugin
Date: Tue, 06 Jan 2009 10:51:17 +0100 [thread overview]
Message-ID: <49632995.9000109@insite.cz> (raw)
In-Reply-To: <49627395.1090506@insite.cz>
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@insite.cz
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.
next prev parent reply other threads:[~2009-01-06 9:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 20:54 PCM parameters in file plugin Pavel Hofman
2009-01-06 9:51 ` Pavel Hofman [this message]
2009-01-06 10:31 ` Jaroslav Kysela
2009-01-06 11:33 ` Pavel Hofman
2009-01-19 22:20 ` [PATCH] " Pavel Hofman
2009-01-26 14:28 ` Pavel Hofman
2009-01-28 15:41 ` Takashi Iwai
2009-01-28 23:00 ` Pavel Hofman
2009-01-29 8:28 ` Takashi Iwai
2009-01-29 10:54 ` Pavel Hofman
2009-01-29 11:01 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49632995.9000109@insite.cz \
--to=pavel.hofman@insite.cz \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.