Mercurial > hg > piper-cpp
comparison test/vamp-client/tst_PluginStub.cpp @ 197:cbbc806097cf
Direct initialisation
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 07 Feb 2017 20:42:20 +0000 |
parents | 4d25a90f639b |
children | 5f71b038d193 |
comparison
equal
deleted
inserted
replaced
196:4d25a90f639b | 197:cbbc806097cf |
---|---|
139 const float scalingFactor = 2.0; | 139 const float scalingFactor = 2.0; |
140 vampPiperAdapter.setParameter("framing-scale", scalingFactor); | 140 vampPiperAdapter.setParameter("framing-scale", scalingFactor); |
141 REQUIRE( initWithPreferredFraming() == false ); | 141 REQUIRE( initWithPreferredFraming() == false ); |
142 REQUIRE( initWithPreferredFraming() ); | 142 REQUIRE( initWithPreferredFraming() ); |
143 | 143 |
144 const AudioBuffer monoAudio = { | 144 const AudioBuffer monoAudio { |
145 std::vector<float>(vampPiperAdapter.getPreferredBlockSize()) | 145 std::vector<float>(vampPiperAdapter.getPreferredBlockSize()) |
146 }; | 146 }; |
147 const std::vector<const float*> channelPtrs { | 147 const std::vector<const float*> channelPtrs { |
148 monoAudio[0].data() | 148 monoAudio[0].data() |
149 }; | 149 }; |