Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginChannelAdapter.h @ 62:fe5486ee1c70 host-factory-stuff
* Documentation
author | cannam |
---|---|
date | Fri, 01 Jun 2007 15:00:51 +0000 |
parents | fa79c4ec847d |
children | c747d9b97af3 |
comparison
equal
deleted
inserted
replaced
61:97c5ac99d725 | 62:fe5486ee1c70 |
---|---|
76 * maximum acceptable number of channels will be produced by | 76 * maximum acceptable number of channels will be produced by |
77 * discarding the excess channels. | 77 * discarding the excess channels. |
78 * | 78 * |
79 * Hosts requiring a different channel policy from the above will need | 79 * Hosts requiring a different channel policy from the above will need |
80 * to implement it themselves, instead of using PluginChannelAdapter. | 80 * to implement it themselves, instead of using PluginChannelAdapter. |
81 * | |
82 * Note that PluginChannelAdapter does not override the minimum and | |
83 * maximum channel counts returned by the wrapped plugin. The host | |
84 * will need to be aware that it is using a PluginChannelAdapter, and | |
85 * be prepared to ignore these counts as necessary. (This contrasts | |
86 * with the approach used in PluginInputDomainAdapter, which aims to | |
87 * make the host completely unaware of which underlying input domain | |
88 * is in fact in use.) | |
89 * | |
90 * The rationale for this is that a host may wish to use the | |
91 * PluginChannelAdapter but still discriminate in some way on the | |
92 * basis of the number of channels actually supported. For example, a | |
93 * simple stereo audio host may prefer to reject plugins that require | |
94 * more than two channels on the grounds that doesn't actually | |
95 * understand what they are for, rather than allow the channel adapter | |
96 * to make a potentially meaningless channel conversion for them. | |
81 */ | 97 */ |
82 | 98 |
83 class PluginChannelAdapter : public PluginWrapper | 99 class PluginChannelAdapter : public PluginWrapper |
84 { | 100 { |
85 public: | 101 public: |