Compare commits

..

2 Commits

Author SHA1 Message Date
260ad36b7d build: add libsamplerate
Some checks failed
macOS and iOS CI / build (push) Has been cancelled
Windows CI / build (push) Has been cancelled
2026-03-07 22:19:31 +01:00
4e1bb95234 build: simple build using CMake (manually add src/ext/libsndfile)
Some checks failed
macOS and iOS CI / build (push) Has been cancelled
Windows CI / build (push) Has been cancelled
2026-03-07 00:20:05 +01:00
14 changed files with 22 additions and 8 deletions

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "src/ext/libsndfile"]
path = src/ext/libsndfile
url = https://github.com/libsndfile/libsndfile.git

View File

@@ -3,7 +3,8 @@ project(rubberband)
set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-DNOMINMAX -DUSE_BQRESAMPLER -DHAVE_KISSFFT") set(BUILD_TESTING FALSE)
set(CMAKE_CXX_FLAGS "-DUSE_BQRESAMPLER -DHAVE_KISSFFT -DHAVE_LIBSAMPLERATE")
#include_directories(mpg123/lib/x86_64/include) #include_directories(mpg123/lib/x86_64/include)
include_directories( include_directories(
@@ -58,4 +59,7 @@ add_executable(rubberband
#target_link_libraries(rubberband ${CMAKE_SOURCE_DIR}/mpg123/lib/x86_64/libmpg123.dll.a) #target_link_libraries(rubberband ${CMAKE_SOURCE_DIR}/mpg123/lib/x86_64/libmpg123.dll.a)
add_subdirectory(src/ext/libsndfile) add_subdirectory(src/ext/libsndfile)
target_link_libraries(rubberband sndfile) add_subdirectory(src/ext/libsamplerate)
target_link_libraries(rubberband sndfile samplerate)
target_include_directories(rubberband PRIVATE ${CMAKE_SOURCE_DIR}/src/ext/libsamplerate/include)

View File

@@ -49,6 +49,7 @@ using RubberBand::gettimeofday;
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER
#define NOMINMAX
#include <windows.h> #include <windows.h>
static void usleep(unsigned long usec) { static void usleep(unsigned long usec) {
::Sleep(usec == 0 ? 0 : usec < 1000 ? 1 : usec / 1000); ::Sleep(usec == 0 ? 0 : usec < 1000 ? 1 : usec / 1000);

View File

@@ -1,4 +1,5 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library

View File

@@ -20,6 +20,7 @@
under terms other than those of the GNU General Public License, under terms other than those of the GNU General Public License,
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#define NOMINMAX
#include "BQResampler.h" #include "BQResampler.h"

View File

@@ -1,4 +1,5 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library

View File

@@ -23,7 +23,7 @@
#include "VectorOpsComplex.h" #include "VectorOpsComplex.h"
#include "system/sysutils.h" //#include "system/sysutils.h"
#include <cassert> #include <cassert>

View File

@@ -24,6 +24,7 @@
#include "sysutils.h" #include "sysutils.h"
#ifdef _WIN32 #ifdef _WIN32
#define NOMINMAX
#include <windows.h> #include <windows.h>
#include <fcntl.h> #include <fcntl.h>
#include <io.h> #include <io.h>

View File

@@ -1,5 +1,7 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library
An audio time-stretching and pitch-shifting library. An audio time-stretching and pitch-shifting library.

View File

@@ -20,6 +20,7 @@
under terms other than those of the GNU General Public License, under terms other than those of the GNU General Public License,
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#define NOMINMAX
#include "StretcherChannelData.h" #include "StretcherChannelData.h"
@@ -27,6 +28,9 @@
#include "../common/Allocators.h" #include "../common/Allocators.h"
#include <algorithm> #include <algorithm>
#include <utility>
using std::max;
namespace RubberBand namespace RubberBand
{ {

View File

@@ -1,4 +1,5 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library

View File

@@ -1,4 +1,5 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library

View File

@@ -1,4 +1,5 @@
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#define NOMINMAX
/* /*
Rubber Band Library Rubber Band Library