Mercurial > hg > vamp-plugin-sdk
comparison examples/SpectralCentroid.cpp @ 8:c4662bbef275
* Allow plugins to return 0 for preferred block/step size to accept a host
default
author | cannam |
---|---|
date | Mon, 03 Apr 2006 14:19:02 +0000 |
parents | c66551966b5f |
children | 44113b1e296b |
comparison
equal
deleted
inserted
replaced
7:c66551966b5f | 8:c4662bbef275 |
---|---|
107 { | 107 { |
108 delete m_workBuffer; | 108 delete m_workBuffer; |
109 m_workBuffer = new double[m_blockSize * 4]; | 109 m_workBuffer = new double[m_blockSize * 4]; |
110 } | 110 } |
111 | 111 |
112 size_t | |
113 SpectralCentroid::getPreferredStepSize() const | |
114 { | |
115 return 2048; // or whatever -- parameter? | |
116 } | |
117 | |
118 size_t | |
119 SpectralCentroid::getPreferredBlockSize() const | |
120 { | |
121 return getPreferredStepSize(); | |
122 } | |
123 | |
124 SpectralCentroid::OutputList | 112 SpectralCentroid::OutputList |
125 SpectralCentroid::getOutputDescriptors() const | 113 SpectralCentroid::getOutputDescriptors() const |
126 { | 114 { |
127 OutputList list; | 115 OutputList list; |
128 | 116 |