Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginChannelAdapter.h @ 75:0f8524203677
* doc updates
author | cannam |
---|---|
date | Thu, 07 Jun 2007 13:56:26 +0000 |
parents | 64697dca0d48 |
children | 6683f99107cf |
comparison
equal
deleted
inserted
replaced
74:64d45f526afc | 75:0f8524203677 |
---|---|
53 * and getMaxChannelCount reported by the plugin, and still expect the | 53 * and getMaxChannelCount reported by the plugin, and still expect the |
54 * plugin to run. | 54 * plugin to run. |
55 * | 55 * |
56 * PluginChannelAdapter implements the following policy: | 56 * PluginChannelAdapter implements the following policy: |
57 * | 57 * |
58 * -- If the plugin supports the provided number of channels directly, | 58 * - If the plugin supports the provided number of channels directly, |
59 * PluginChannelAdapter will just run the plugin as normal. | 59 * PluginChannelAdapter will just run the plugin as normal. |
60 * | 60 * |
61 * -- If the plugin only supports exactly one channel but more than | 61 * - If the plugin only supports exactly one channel but more than |
62 * one channel is provided, PluginChannelAdapter will use the mean of | 62 * one channel is provided, PluginChannelAdapter will use the mean of |
63 * the channels. This ensures that the resulting values remain within | 63 * the channels. This ensures that the resulting values remain |
64 * the same magnitude range as expected for mono data. | 64 * within the same magnitude range as expected for mono data. |
65 * | 65 * |
66 * -- If the plugin requires more than one channel but exactly one is | 66 * - If the plugin requires more than one channel but exactly one is |
67 * provided, the provided channel will be duplicated across all the | 67 * provided, the provided channel will be duplicated across all the |
68 * plugin input channels. | 68 * plugin input channels. |
69 * | 69 * |
70 * If none of the above apply: | 70 * If none of the above apply: |
71 * | 71 * |
72 * -- If the plugin requires more channels than are provided, the | 72 * - If the plugin requires more channels than are provided, the |
73 * minimum acceptable number of channels will be produced by adding | 73 * minimum acceptable number of channels will be produced by adding |
74 * empty (zero valued) channels to those provided. | 74 * empty (zero valued) channels to those provided. |
75 * | 75 * |
76 * -- If the plugin requires fewer channels than are provided, the | 76 * - If the plugin requires fewer channels than are provided, the |
77 * maximum acceptable number of channels will be produced by | 77 * maximum acceptable number of channels will be produced by |
78 * discarding the excess channels. | 78 * discarding the excess channels. |
79 * | 79 * |
80 * Hosts requiring a different channel policy from the above will need | 80 * Hosts requiring a different channel policy from the above will need |
81 * to implement it themselves, instead of using PluginChannelAdapter. | 81 * to implement it themselves, instead of using PluginChannelAdapter. |
82 * | 82 * |
83 * Note that PluginChannelAdapter does not override the minimum and | 83 * Note that PluginChannelAdapter does not override the minimum and |
98 * | 98 * |
99 * In every respect other than its management of channels, the | 99 * In every respect other than its management of channels, the |
100 * PluginChannelAdapter behaves identically to the plugin that it | 100 * PluginChannelAdapter behaves identically to the plugin that it |
101 * wraps. The wrapped plugin will be deleted when the wrapper is | 101 * wraps. The wrapped plugin will be deleted when the wrapper is |
102 * deleted. | 102 * deleted. |
103 * | |
104 * \note This class was introduced version 1.1 of the Vamp plugin SDK. | |
103 */ | 105 */ |
104 | 106 |
105 class PluginChannelAdapter : public PluginWrapper | 107 class PluginChannelAdapter : public PluginWrapper |
106 { | 108 { |
107 public: | 109 public: |