Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/PluginHostAdapter.cpp @ 192:d4fbd4e6fdbf
* Add hasDuration to output descriptor as well as the features themselves
author | cannam |
---|---|
date | Thu, 18 Sep 2008 16:08:28 +0000 |
parents | 006a775133b1 |
children | fe30a25ee4f8 |
comparison
equal
deleted
inserted
replaced
191:d1bdcd4a226f | 192:d4fbd4e6fdbf |
---|---|
339 d.sampleType = OutputDescriptor::VariableSampleRate; break; | 339 d.sampleType = OutputDescriptor::VariableSampleRate; break; |
340 } | 340 } |
341 | 341 |
342 d.sampleRate = sd->sampleRate; | 342 d.sampleRate = sd->sampleRate; |
343 | 343 |
344 if (m_descriptor->vampApiVersion >= 2) { | |
345 d.hasDuration = sd->hasDuration; | |
346 } else { | |
347 d.hasDuration = false; | |
348 } | |
349 | |
344 list.push_back(d); | 350 list.push_back(d); |
345 | 351 |
346 m_descriptor->releaseOutputDescriptor(sd); | 352 m_descriptor->releaseOutputDescriptor(sd); |
347 } | 353 } |
348 | 354 |