Browse Source

Compile complains about whitespace indentation

tags/2020-07-14
Gitter Dude Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
697060c045
5 changed files with 32 additions and 32 deletions
  1. +1
    -1
      libs/drowaudio/source/dRowAudio/audio/dRowAudio_AudioFilePlayerExt.cpp
  2. +3
    -3
      libs/drowaudio/source/dRowAudio/audio/fft/dRowAudio_Window.cpp
  3. +26
    -26
      libs/drowaudio/source/dRowAudio/gui/dRowAudio_MusicLibraryTable.cpp
  4. +1
    -1
      ports/drumsynth/source/DrumSynthVoice.h
  5. +1
    -1
      ports/juce-opl/source/zdopl.cpp

+ 1
- 1
libs/drowaudio/source/dRowAudio/audio/dRowAudio_AudioFilePlayerExt.cpp View File

@@ -129,7 +129,7 @@ bool AudioFilePlayerExt::setSourceWithReader (AudioFormatReader* reader)
if (soundTouchAudioSource != nullptr)
currentSoundtouchSettings = soundTouchAudioSource->getPlaybackSettings();
audioTransportSource.setSource (nullptr);
audioTransportSource.setSource (nullptr);
loopingAudioSource = nullptr;
soundTouchAudioSource = nullptr;
bufferingAudioSource = nullptr;


+ 3
- 3
libs/drowaudio/source/dRowAudio/audio/fft/dRowAudio_Window.cpp View File

@@ -59,8 +59,8 @@ void Window::setWindowType (WindowType newType)
if (windowType == newType)
return;

windowType = newType;
setUpWindowBuffer();
windowType = newType;
setUpWindowBuffer();
}

void Window::setWindowSize (int newSize)
@@ -69,7 +69,7 @@ void Window::setWindowSize (int newSize)
return;
windowBuffer.setSize (1, newSize);
setUpWindowBuffer();
setUpWindowBuffer();
}

void Window::applyWindow (float* samples, const int numSamples) const noexcept


+ 26
- 26
libs/drowaudio/source/dRowAudio/gui/dRowAudio_MusicLibraryTable.cpp View File

@@ -94,34 +94,34 @@ void MusicLibraryTable::setFilterText (const String& filterString)
if (currentLibrary != nullptr)
currentLibrary->getParserLock().enter();
if (filterString.isEmpty())
{
filteredDataList = dataList;
filteredNumRows = filteredDataList.getNumChildren();
}
else
{
filteredDataList = ValueTree (dataList.getType());
for (int e = 0; e < dataList.getNumChildren(); ++e)
{
for (int i = 0; i < dataList.getChild (e).getNumProperties(); i++)
{
if (dataList.getChild (e)[MusicColumns::columnNames[i]].toString().containsIgnoreCase (filterString))
{
filteredDataList.addChild (dataList.getChild(e).createCopy(), -1, 0);
break;
}
}
}
if (filterString.isEmpty())
{
filteredDataList = dataList;
filteredNumRows = filteredDataList.getNumChildren();
}
else
{
filteredDataList = ValueTree (dataList.getType());
for (int e = 0; e < dataList.getNumChildren(); ++e)
{
for (int i = 0; i < dataList.getChild (e).getNumProperties(); i++)
{
if (dataList.getChild (e)[MusicColumns::columnNames[i]].toString().containsIgnoreCase (filterString))
{
filteredDataList.addChild (dataList.getChild(e).createCopy(), -1, 0);
break;
}
}
}
filteredNumRows = filteredDataList.getNumChildren();
}
filteredNumRows = filteredDataList.getNumChildren();
}
if (currentLibrary != nullptr)
currentLibrary->getParserLock().exit();
table.getHeader().reSortTable();
table.getHeader().reSortTable();
}
//==============================================================================
@@ -178,7 +178,7 @@ void MusicLibraryTable::paintCell (Graphics& g,
else
g.setColour (defaultColours.findColour (*this, rowIsSelected ? selectedUnfocusedTextColourId : unfocusedTextColourId));
g.setFont (font);
g.setFont (font);
{
const ScopedLock sl (currentLibrary->getParserLock());
@@ -205,8 +205,8 @@ void MusicLibraryTable::paintCell (Graphics& g,
else
g.setColour (defaultColours.findColour (*this, rowIsSelected ? selectedUnfocusedOutlineColourId : unfocusedOutlineColourId));
g.fillRect (width - 1, 0, 1, height);
g.fillRect (0, height - 1, width, 1);
g.fillRect (width - 1, 0, 1, height);
g.fillRect (0, height - 1, width, 1);
}
void MusicLibraryTable::sortOrderChanged (int newSortColumnId, bool isForwards)


+ 1
- 1
ports/drumsynth/source/DrumSynthVoice.h View File

@@ -810,7 +810,7 @@ private:
case 1: w = (float) fabs (2.0f * (float) sin (fmod (0.5f * ph, TwoPi))) - 1.f; break; //sine^2
case 2: while (ph < TwoPi) ph += TwoPi;
w = 0.6366197f * (float) fmod (ph, TwoPi) - 1.f;
if (w > 1.f) w = 2.f - w; break; //tri
if (w > 1.f) { w = 2.f - w; } break; //tri
case 3: w = ph - TwoPi * (float)(int)(ph / TwoPi);
w = (0.3183098f * w) - 1.f; break; //saw
default: w = (sin (fmod (ph, TwoPi)) > 0.0) ? 1.f: -1.f; break; //square


+ 1
- 1
ports/juce-opl/source/zdopl.cpp View File

@@ -637,7 +637,7 @@ void OPL3::Update(float *output, int numsamples) {
output[0] += float(channelOutput);
}
}
output[0] /= 2.0f; // scale output down to avoid clipping
output[0] /= 2.0f; // scale output down to avoid clipping
// Advances the OPL3-wide vibrato index, which is used by
// PhaseGenerator.getPhase() in each Operator.


Loading…
Cancel
Save