Skip to content

Commit

Permalink
Deprecated juce::ScopedPointer => std::unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed May 19, 2020
1 parent 216184d commit 130829a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Frame.cpp
Expand Up @@ -992,8 +992,8 @@ void Frame::Play()
juce::AudioSourcePlayer audioSourcePlayer;
deviceManager.addAudioCallback (&audioSourcePlayer);

ScopedPointer<AudioBufferSource> my_source;
my_source = new AudioBufferSource(audio.get());
std::unique_ptr<AudioBufferSource> my_source;
my_source.reset (new AudioBufferSource (audio.get()));

// Create TimeSliceThread for audio buffering
juce::TimeSliceThread my_thread("Audio buffer thread");
Expand All @@ -1002,7 +1002,7 @@ void Frame::Play()
my_thread.startThread();

AudioTransportSource transport1;
transport1.setSource (my_source,
transport1.setSource (my_source.get(),
5000, // tells it to buffer this many samples ahead
&my_thread,
(double) sample_rate,
Expand Down

0 comments on commit 130829a

Please sign in to comment.