From: Petr Gladkikh <batyi@mail.ru>
To: alsa-devel@lists.sourceforge.net
Subject: volume PCM plugin
Date: Mon, 17 Jan 2005 15:17:36 +0600 [thread overview]
Message-ID: <41EB82B0.2050900@mail.ru> (raw)
In-Reply-To: <200501171511.33573.igor@eellc.ru>
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
Hello.
Here is the patch (for alsa-lib-1.0.7) which is another attempt
(compare to coftvol plugin) to emulate volume control in alsa-lib (see
my previous post). The volume plugin is based on copy PCM plugin.
IMO the approach which is used here would allow more flexible
configurations than softvol. E.g. it allows bind to master volume
control in addition to emulated volume control. If necessary the
volume plugin allows to easily extend number of hooks which can be
attached to it (for now only one is supported).
Sample configuration
pcm.vol {
type volume
slave {
pcm some_plug
}
coeff 1.0
hook {
card default
control Master
index 0
}
}
Note that
1. 'hook' is optional.
2. volume plugin does not convert PCM formats thus it is best used
with 'plug' PCM plugin for example.
/Petr.
[-- Attachment #2: alsa-lib-1.0.7-softvol-pg.patch.bz2 --]
[-- Type: application/octet-stream, Size: 6436 bytes --]
next prev parent reply other threads:[~2005-01-17 9:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 15:11 Problem closing device handle igor
2005-01-17 9:17 ` Petr Gladkikh [this message]
2005-01-17 10:43 ` volume PCM plugin Takashi Iwai
2005-01-17 11:16 ` Petr Gladkikh
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=41EB82B0.2050900@mail.ru \
--to=batyi@mail.ru \
--cc=alsa-devel@lists.sourceforge.net \
/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.