comparison vamp-sdk/hostext/PluginBufferingAdapter.h @ 133:92ca8e401044

* PluginBufferingAdapter: Rewrite OneSamplePerStep to FixedSampleRate, not VariableSampleRate (so result is still dense); do not change FixedSampleRate to VariableSampleRate either; do not do the work of rewriting outputs that don't need to be rewritten
author cannam
date Thu, 20 Mar 2008 13:22:02 +0000
parents 08d8c8ee6097
children af8e59f43d1d
comparison
equal deleted inserted replaced
132:f5fff1c6f06d 133:92ca8e401044
56 * to run. The value of blockSize and stepSize passed to initialise 56 * to run. The value of blockSize and stepSize passed to initialise
57 * should be the size of the buffer which the host will supply; the 57 * should be the size of the buffer which the host will supply; the
58 * stepSize should be equal to the blockSize. 58 * stepSize should be equal to the blockSize.
59 * 59 *
60 * If the internal step size used for the plugin differs from that 60 * If the internal step size used for the plugin differs from that
61 * supplied by the host, the adapter will modify the sample rate 61 * supplied by the host, the adapter will modify the sample type and
62 * specifications for the plugin outputs (setting them all to 62 * rate specifications for the plugin outputs appropriately, and set
63 * VariableSampleRate) and set timestamps on the output features for 63 * timestamps on the output features for outputs that formerly used a
64 * outputs that formerly used a different sample rate specification. 64 * different sample rate specification. This is necessary in order to
65 * This is necessary in order to obtain correct time stamping. 65 * obtain correct time stamping.
66 * 66 *
67 * In other respects, the PluginBufferingAdapter behaves identically 67 * In other respects, the PluginBufferingAdapter behaves identically
68 * to the plugin that it wraps. The wrapped plugin will be deleted 68 * to the plugin that it wraps. The wrapped plugin will be deleted
69 * when the wrapper is deleted. 69 * when the wrapper is deleted.
70 */ 70 */