mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More ScopedPointer/unique_ptr compatibility work
This commit is contained in:
parent
48a5fbd333
commit
1a60fa9765
80 changed files with 404 additions and 368 deletions
|
|
@ -44,9 +44,9 @@ SamplerSound::SamplerSound (const String& soundName,
|
|||
length = jmin ((int) source.lengthInSamples,
|
||||
(int) (maxSampleLengthSeconds * sourceSampleRate));
|
||||
|
||||
data = new AudioBuffer<float> (jmin (2, (int) source.numChannels), length + 4);
|
||||
data.reset (new AudioBuffer<float> (jmin (2, (int) source.numChannels), length + 4));
|
||||
|
||||
source.read (data, 0, length + 4, 0, true, true);
|
||||
source.read (data.get(), 0, length + 4, 0, true, true);
|
||||
|
||||
attackSamples = roundToInt (attackTimeSecs * sourceSampleRate);
|
||||
releaseSamples = roundToInt (releaseTimeSecs * sourceSampleRate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue