NOOP - whitespace
This commit is contained in:
parent
8a03a1c5c7
commit
cb396ba7a6
11 changed files with 22 additions and 22 deletions
|
|
@ -30,7 +30,7 @@ if (WIN32 OR SFIZZ_USE_VCPKG)
|
||||||
find_package(LibSndFile REQUIRED)
|
find_package(LibSndFile REQUIRED)
|
||||||
find_path(SNDFILE_INCLUDE_DIR sndfile.hh)
|
find_path(SNDFILE_INCLUDE_DIR sndfile.hh)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(SFIZZ_LINK_LIBSNDFILE TARGET)
|
function(SFIZZ_LINK_LIBSNDFILE TARGET)
|
||||||
if (WIN32 OR SFIZZ_USE_VCPKG)
|
if (WIN32 OR SFIZZ_USE_VCPKG)
|
||||||
target_link_libraries (${TARGET} PRIVATE sndfile-static)
|
target_link_libraries (${TARGET} PRIVATE sndfile-static)
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
|
||||||
&& apt-get install -y cmake
|
&& apt-get install -y cmake
|
||||||
|
|
||||||
RUN cd /tmp \
|
RUN cd /tmp \
|
||||||
&& git clone https://github.com/Microsoft/vcpkg.git \
|
&& git clone https://github.com/Microsoft/vcpkg.git \
|
||||||
&& cd vcpkg \
|
&& cd vcpkg \
|
||||||
&& ./bootstrap-vcpkg.sh -disableMetrics \
|
&& ./bootstrap-vcpkg.sh -disableMetrics \
|
||||||
&& ./vcpkg integrate install
|
&& ./vcpkg integrate install
|
||||||
|
|
||||||
COPY x64-linux-hidden.cmake .
|
COPY x64-linux-hidden.cmake .
|
||||||
|
|
||||||
|
|
@ -23,4 +23,4 @@ RUN cd /tmp \
|
||||||
&& mkdir build \
|
&& mkdir build \
|
||||||
&& cd build \
|
&& cd build \
|
||||||
&& cmake .. -DSFIZZ_JACK=OFF -DSFIZZ_SHARED=OFF "-DCMAKE_TOOLCHAIN_FILE=/tmp/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-linux-hidden -DCMAKE_BUILD_TYPE=Release -DSFIZZ_USE_VCPKG=ON\
|
&& cmake .. -DSFIZZ_JACK=OFF -DSFIZZ_SHARED=OFF "-DCMAKE_TOOLCHAIN_FILE=/tmp/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-linux-hidden -DCMAKE_BUILD_TYPE=Release -DSFIZZ_USE_VCPKG=ON\
|
||||||
&& make -j 16
|
&& make -j 16
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ script_dir="$(dirname "$0")"
|
||||||
pushd $script_dir
|
pushd $script_dir
|
||||||
docker build -t sfizz .
|
docker build -t sfizz .
|
||||||
popd
|
popd
|
||||||
docker cp $(docker create sfizz:latest):/tmp/sfizz/build/sfizz.lv2 .
|
docker cp $(docker create sfizz:latest):/tmp/sfizz/build/sfizz.lv2 .
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ Version: @PROJECT_VERSION@
|
||||||
|
|
||||||
Requires.private: sndfile
|
Requires.private: sndfile
|
||||||
Libs: -L${libdir} -l@PROJECT_NAME@
|
Libs: -L${libdir} -l@PROJECT_NAME@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ def case_insensitive_check(filename):
|
||||||
if path != '':
|
if path != '':
|
||||||
path += '/'
|
path += '/'
|
||||||
found = False
|
found = False
|
||||||
|
|
||||||
if os.path.exists(root_directory + path + e):
|
if os.path.exists(root_directory + path + e):
|
||||||
path += e
|
path += e
|
||||||
continue
|
continue
|
||||||
|
|
@ -69,4 +69,4 @@ else:
|
||||||
|
|
||||||
print("Writing corrected file to", output_file)
|
print("Writing corrected file to", output_file)
|
||||||
with open(output_file, 'w') as file:
|
with open(output_file, 'w') as file:
|
||||||
file.write(output_content)
|
file.write(output_content)
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ set(VCPKG_CRT_LINKAGE static)
|
||||||
set(VCPKG_LIBRARY_LINKAGE static)
|
set(VCPKG_LIBRARY_LINKAGE static)
|
||||||
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
||||||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fvisibility=hidden")
|
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fvisibility=hidden")
|
||||||
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fvisibility=hidden")
|
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fvisibility=hidden")
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "ScopedFTZ.h"
|
#include "ScopedFTZ.h"
|
||||||
#if (HAVE_X86INTRIN_H)
|
#if (HAVE_X86INTRIN_H)
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
#elif (HAVE_INTRIN_H)
|
#elif (HAVE_INTRIN_H)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#elif (HAVE_ARM_NEON_H)
|
#elif (HAVE_ARM_NEON_H)
|
||||||
|
|
@ -51,4 +51,4 @@ ScopedFTZ::~ScopedFTZ()
|
||||||
#elif HAVE_ARM_NEON_H
|
#elif HAVE_ARM_NEON_H
|
||||||
asm volatile("vmsr %0, fpscr" : : "ri"(registerState));
|
asm volatile("vmsr %0, fpscr" : : "ri"(registerState));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Flush floating points to zero and disable denormals as an RAII helper.
|
* @brief Flush floating points to zero and disable denormals as an RAII helper.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class ScopedFTZ {
|
class ScopedFTZ {
|
||||||
|
|
||||||
|
|
@ -32,4 +32,4 @@ public:
|
||||||
~ScopedFTZ();
|
~ScopedFTZ();
|
||||||
private:
|
private:
|
||||||
unsigned registerState;
|
unsigned registerState;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ bool sfz::findOpcode(absl::string_view& source, absl::string_view& opcode, absl:
|
||||||
auto opcodeEnd = source.find("=");
|
auto opcodeEnd = source.find("=");
|
||||||
if (opcodeEnd == absl::string_view::npos)
|
if (opcodeEnd == absl::string_view::npos)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto valueStart = opcodeEnd + 1;
|
const auto valueStart = opcodeEnd + 1;
|
||||||
const auto nextOpcodeEnd = source.find("=", valueStart);
|
const auto nextOpcodeEnd = source.find("=", valueStart);
|
||||||
|
|
||||||
|
|
@ -212,11 +212,11 @@ bool sfz::findOpcode(absl::string_view& source, absl::string_view& opcode, absl:
|
||||||
auto valueEnd = nextOpcodeEnd;
|
auto valueEnd = nextOpcodeEnd;
|
||||||
while (source[valueEnd] != ' ' && valueEnd != valueStart)
|
while (source[valueEnd] != ' ' && valueEnd != valueStart)
|
||||||
valueEnd--;
|
valueEnd--;
|
||||||
|
|
||||||
opcode = source.substr(0, opcodeEnd);
|
opcode = source.substr(0, opcodeEnd);
|
||||||
value = source.substr(valueStart, valueEnd - valueStart);
|
value = source.substr(valueStart, valueEnd - valueStart);
|
||||||
source.remove_prefix(valueEnd);
|
source.remove_prefix(valueEnd);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -225,7 +225,7 @@ bool sfz::findDefine(absl::string_view line, absl::string_view& variable, absl::
|
||||||
const auto defPosition = line.find("#define");
|
const auto defPosition = line.find("#define");
|
||||||
if (defPosition == absl::string_view::npos)
|
if (defPosition == absl::string_view::npos)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto variableStart = line.find("$", 7);
|
const auto variableStart = line.find("$", 7);
|
||||||
if (variableStart == absl::string_view::npos)
|
if (variableStart == absl::string_view::npos)
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -240,7 +240,7 @@ bool sfz::findDefine(absl::string_view line, absl::string_view& variable, absl::
|
||||||
|
|
||||||
const auto valueEnd = line.find_first_of(" \r\t\n\f\v", valueStart);
|
const auto valueEnd = line.find_first_of(" \r\t\n\f\v", valueStart);
|
||||||
variable = line.substr(variableStart, variableEnd - variableStart);
|
variable = line.substr(variableStart, variableEnd - variableStart);
|
||||||
value = valueEnd != absl::string_view::npos
|
value = valueEnd != absl::string_view::npos
|
||||||
? line.substr(valueStart, valueEnd - valueStart)
|
? line.substr(valueStart, valueEnd - valueStart)
|
||||||
: line.substr(valueStart);
|
: line.substr(valueStart);
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -251,7 +251,7 @@ bool sfz::findInclude(absl::string_view line, std::string& path)
|
||||||
const auto defPosition = line.find("#include");
|
const auto defPosition = line.find("#include");
|
||||||
if (defPosition == absl::string_view::npos)
|
if (defPosition == absl::string_view::npos)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto pathStart = line.find("\"", 8);
|
const auto pathStart = line.find("\"", 8);
|
||||||
if (pathStart == absl::string_view::npos)
|
if (pathStart == absl::string_view::npos)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ void sfz::Synth::renderBlock(AudioSpan<float> buffer) noexcept
|
||||||
const auto callbackStartTime = std::chrono::high_resolution_clock::now();
|
const auto callbackStartTime = std::chrono::high_resolution_clock::now();
|
||||||
|
|
||||||
buffer.fill(0.0f);
|
buffer.fill(0.0f);
|
||||||
|
|
||||||
resources.filePool.cleanupPromises();
|
resources.filePool.cleanupPromises();
|
||||||
|
|
||||||
if (freeWheeling)
|
if (freeWheeling)
|
||||||
|
|
@ -490,7 +490,7 @@ void sfz::Synth::cc(int delay, int ccNumber, uint8_t ccValue) noexcept
|
||||||
resetAllControllers(delay);
|
resetAllControllers(delay);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
midiState.ccEvent(ccNumber, ccValue);
|
midiState.ccEvent(ccNumber, ccValue);
|
||||||
for (auto& voice : voices)
|
for (auto& voice : voices)
|
||||||
voice->registerCC(delay, ccNumber, ccValue);
|
voice->registerCC(delay, ccNumber, ccValue);
|
||||||
|
|
|
||||||
|
|
@ -177,4 +177,4 @@ void sfz::Sfizz::disableFreeWheeling() noexcept
|
||||||
bool sfz::Sfizz::shouldReloadFile()
|
bool sfz::Sfizz::shouldReloadFile()
|
||||||
{
|
{
|
||||||
return synth->shouldReloadFile();
|
return synth->shouldReloadFile();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue