Browse Source

Examples: Fix up createAssetInputStream uses

tags/2021-05-28
reuk 5 years ago
parent
commit
4caf25914c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      examples/Plugins/SamplerPluginDemo.h

+ 3
- 3
examples/Plugins/SamplerPluginDemo.h View File

@@ -492,9 +492,9 @@ inline std::unique_ptr<AudioFormatReader> makeAudioFormatReader (AudioFormatMana
const void* sampleData,
size_t dataSize)
{
return std::unique_ptr<AudioFormatReader> (manager.createReaderFor (new MemoryInputStream (sampleData,
dataSize,
false)));
return std::unique_ptr<AudioFormatReader> (manager.createReaderFor (std::make_unique<MemoryInputStream> (sampleData,
dataSize,
false)));
}
inline std::unique_ptr<AudioFormatReader> makeAudioFormatReader (AudioFormatManager& manager,


Loading…
Cancel
Save