mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Fixed some errors in the examples
This commit is contained in:
parent
69d5f16be0
commit
7035a40879
7 changed files with 13 additions and 25 deletions
|
|
@ -90,8 +90,7 @@ struct ConvolutionDemoDSP
|
|||
auto selectedType = cabinetTypeParameter->getCurrentSelectedID();
|
||||
auto assetName = (selectedType == 2 ? "guitar_amp.wav" : "cassette_recorder.wav");
|
||||
|
||||
std::unique_ptr<InputStream> assetInputStream (createAssetInputStream (assetName));
|
||||
if (assetInputStream != nullptr)
|
||||
if (auto assetInputStream = createAssetInputStream (assetName))
|
||||
{
|
||||
currentCabinetData.reset();
|
||||
assetInputStream->readIntoMemoryBlock (currentCabinetData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue