From: Ben C <bchang_2@yahoo.com>
To: alsa-devel@alsa-project.org
Subject: ALSA external control plugin question
Date: Tue, 11 Dec 2007 12:10:16 -0800 (PST) [thread overview]
Message-ID: <426596.76239.qm@web36503.mail.mud.yahoo.com> (raw)
Hi, I have a newbie question. I'm trying to understand how the external control plugin fits into the picture.
I have an external PCM plugin that does some audio processing before sending it to the slave audio device. And I want to control the behavior of the processing with this control plugin. So before any playback is happening, any setting changes via the control plugin need to be stored somewhere, so when playback happens, it could be used. Also during playback, the control plugin needs to find and talk to the PCM plugin so settings could be changed during playback. Is there some sort of internal mechanism that allows this type of setting storage/retrieval and communication between control & PCM plugins to happen, or do I have to roll my own outside of ALSA?
I've tried to find examples, I've found the pulse control and maemo in the alsa-plugin tarball. But they both seem to use some sort of external server/device. What I'm looking for is ways to control an external PCM plugin that simply runs some audio processing algorithm, there's no additional server or device associated with it (well, just the slave, which would be specified in the config). Currently I have the PCM plugin working, but it can only read the settings from the alsa config file. Once playback starts it'll stick with the original settings. I also have the basics of the external control plugin working, but the controls currently don't do anything, since I don't know how to propagate the changes to the PCM plugin.
I've been searching on the web but haven't found much. I'm willing to buy books too, but I can't seem to find books on ALSA. I would appreciate any explanation, pointers to documents, or even just pointing me to existing source code that has done this.
Thank you for your time and your help.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
next reply other threads:[~2007-12-11 20:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 20:10 Ben C [this message]
2007-12-13 16:01 ` ALSA external control plugin question 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=426596.76239.qm@web36503.mail.mud.yahoo.com \
--to=bchang_2@yahoo.com \
--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.