mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a non-sense if statement to BufferingAudioSource to surpress an MSVC linker warning
This commit is contained in:
parent
3e7b5993ca
commit
a931b472d0
1 changed files with 6 additions and 1 deletions
|
|
@ -91,7 +91,12 @@ void BufferingAudioSource::releaseResources()
|
|||
backgroundThread.removeTimeSliceClient (this);
|
||||
|
||||
buffer.setSize (numberOfChannels, 0);
|
||||
source->releaseResources();
|
||||
|
||||
// MSVC2015 seems to need this if statement to not generate a warning during linking.
|
||||
// As source is set in the constructor, there is no way that source could
|
||||
// ever equal this, but it seems to make MSVC2015 happy.
|
||||
if (source != this)
|
||||
source->releaseResources();
|
||||
}
|
||||
|
||||
void BufferingAudioSource::getNextAudioBlock (const AudioSourceChannelInfo& info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue