Mercurial > hg > vamp-plugin-sdk
comparison examples/ZeroCrossing.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 |
|---|---|
| 98 ZeroCrossing::reset() | 98 ZeroCrossing::reset() |
| 99 { | 99 { |
| 100 m_previousSample = 0.0f; | 100 m_previousSample = 0.0f; |
| 101 } | 101 } |
| 102 | 102 |
| 103 size_t | |
| 104 ZeroCrossing::getPreferredStepSize() const | |
| 105 { | |
| 106 return 4096; // or whatever | |
| 107 } | |
| 108 | |
| 109 size_t | |
| 110 ZeroCrossing::getPreferredBlockSize() const | |
| 111 { | |
| 112 return getPreferredStepSize(); | |
| 113 } | |
| 114 | |
| 115 ZeroCrossing::OutputList | 103 ZeroCrossing::OutputList |
| 116 ZeroCrossing::getOutputDescriptors() const | 104 ZeroCrossing::getOutputDescriptors() const |
| 117 { | 105 { |
| 118 OutputList list; | 106 OutputList list; |
| 119 | 107 |
