-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT(client): Restore RNNoise for version 0.2
Reverted the merge which added ReNameNoise as an RNNoise replacement. Added the git submodule from xiph/rnnoise after removing ReNameNoise. Chose to go with rnnoise's `main` here. Resolves #6395 Reverts #6364
- Loading branch information
1 parent
cb01bfa
commit 7689a5d
Showing
15 changed files
with
273 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule renamenoise
deleted from
2a551a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2005-2019 The Mumble Developers. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license | ||
# that can be found in the LICENSE file at the root of the | ||
# Mumble source tree or at <https://www.mumble.info/LICENSE>. | ||
|
||
set(RNNOISE_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../rnnoise-src") | ||
|
||
if(NOT EXISTS "${RNNOISE_SRC_DIR}/COPYING") | ||
message(FATAL_ERROR | ||
"${RNNOISE_SRC_DIR} was not found.\n" | ||
"Please checkout the submodule:\n" | ||
"git submodule update --init --recursive" | ||
) | ||
endif() | ||
|
||
if(WIN32) | ||
add_library(rnnoise SHARED) | ||
set_target_properties(rnnoise PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
if(MINGW) | ||
# Remove "lib" prefix. | ||
set_target_properties(rnnoise PROPERTIES PREFIX "") | ||
endif() | ||
target_compile_definitions(rnnoise | ||
PRIVATE | ||
"WIN32" | ||
"DLL_EXPORT" | ||
) | ||
else() | ||
add_library(rnnoise STATIC) | ||
endif() | ||
|
||
target_compile_definitions(rnnoise PRIVATE "HAVE_CONFIG_H") | ||
|
||
target_include_directories(rnnoise | ||
PRIVATE SYSTEM | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
PUBLIC SYSTEM | ||
"${RNNOISE_SRC_DIR}/include" | ||
) | ||
|
||
if(MSVC) | ||
# Use malloc() and free() instead of variable length arrays (unsupported) | ||
target_compile_definitions(rnnoise PRIVATE "USE_MALLOC") | ||
# Define M_PI | ||
target_compile_definitions(rnnoise PRIVATE "_USE_MATH_DEFINES") | ||
endif() | ||
|
||
target_sources(rnnoise PRIVATE | ||
"${RNNOISE_SRC_DIR}/src/rnn_data.c" | ||
"${RNNOISE_SRC_DIR}/src/rnn.c" | ||
"${RNNOISE_SRC_DIR}/src/pitch.c" | ||
"${RNNOISE_SRC_DIR}/src/kiss_fft.c" | ||
"${RNNOISE_SRC_DIR}/src/denoise.c" | ||
"${RNNOISE_SRC_DIR}/src/celt_lpc.c" | ||
) | ||
|
||
target_disable_warnings(rnnoise) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* config.h. Generated from config.h.in by configure. */ | ||
/* config.h.in. Generated from configure.ac by autoheader. */ | ||
|
||
/* Define to 1 if you have the <dlfcn.h> header file. */ | ||
#define HAVE_DLFCN_H 1 | ||
|
||
/* Define to 1 if you have the <inttypes.h> header file. */ | ||
#define HAVE_INTTYPES_H 1 | ||
|
||
/* Define to 1 if you have the <memory.h> header file. */ | ||
#define HAVE_MEMORY_H 1 | ||
|
||
/* Define to 1 if you have the <stdint.h> header file. */ | ||
#define HAVE_STDINT_H 1 | ||
|
||
/* Define to 1 if you have the <stdlib.h> header file. */ | ||
#define HAVE_STDLIB_H 1 | ||
|
||
/* Define to 1 if you have the <strings.h> header file. */ | ||
#define HAVE_STRINGS_H 1 | ||
|
||
/* Define to 1 if you have the <string.h> header file. */ | ||
#define HAVE_STRING_H 1 | ||
|
||
/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
#define HAVE_SYS_STAT_H 1 | ||
|
||
/* Define to 1 if you have the <sys/types.h> header file. */ | ||
#define HAVE_SYS_TYPES_H 1 | ||
|
||
/* Define to 1 if you have the <unistd.h> header file. */ | ||
#define HAVE_UNISTD_H 1 | ||
|
||
/* Define to the sub-directory where libtool stores uninstalled libraries. */ | ||
#define LT_OBJDIR ".libs/" | ||
|
||
/* Enable assertions in code */ | ||
/* #undef OP_ENABLE_ASSERTIONS */ | ||
|
||
/* Define to the address where bug reports for this package should be sent. */ | ||
#define PACKAGE_BUGREPORT "jmvalin@jmvalin.ca" | ||
|
||
/* Define to the full name of this package. */ | ||
#define PACKAGE_NAME "rnnoise" | ||
|
||
/* Define to the full name and version of this package. */ | ||
#define PACKAGE_STRING "rnnoise unknown" | ||
|
||
/* Define to the one symbol short name of this package. */ | ||
#define PACKAGE_TARNAME "rnnoise" | ||
|
||
/* Define to the home page for this package. */ | ||
#define PACKAGE_URL "" | ||
|
||
/* Define to the version of this package. */ | ||
#define PACKAGE_VERSION "unknown" | ||
|
||
/* This is a build of the library */ | ||
#define RNNOISE_BUILD /**/ | ||
|
||
/* Define to 1 if you have the ANSI C header files. */ | ||
#define STDC_HEADERS 1 | ||
|
||
/* Define this if the compiler supports __attribute__(( | ||
ifelse([visibility("default")], , [visibility_default], | ||
[visibility("default")]) )) */ | ||
#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1 | ||
|
||
/* Define this if the compiler supports the -fvisibility flag */ | ||
#define SUPPORT_FLAG_VISIBILITY 1 | ||
|
||
/* Enable extensions on AIX 3, Interix. */ | ||
#ifndef _ALL_SOURCE | ||
# define _ALL_SOURCE 1 | ||
#endif | ||
/* Enable GNU extensions on systems that have them. */ | ||
#ifndef _GNU_SOURCE | ||
# define _GNU_SOURCE 1 | ||
#endif | ||
/* Enable threading extensions on Solaris. */ | ||
#ifndef _POSIX_PTHREAD_SEMANTICS | ||
# define _POSIX_PTHREAD_SEMANTICS 1 | ||
#endif | ||
/* Enable extensions on HP NonStop. */ | ||
#ifndef _TANDEM_SOURCE | ||
# define _TANDEM_SOURCE 1 | ||
#endif | ||
/* Enable general extensions on Solaris. */ | ||
#ifndef __EXTENSIONS__ | ||
# define __EXTENSIONS__ 1 | ||
#endif | ||
|
||
|
||
/* Enable large inode numbers on Mac OS X 10.5. */ | ||
#ifndef _DARWIN_USE_64_BIT_INODE | ||
# define _DARWIN_USE_64_BIT_INODE 1 | ||
#endif | ||
|
||
/* Number of bits in a file offset, on hosts where this is settable. */ | ||
/* #undef _FILE_OFFSET_BITS */ | ||
|
||
/* Define for large files, on AIX-style hosts. */ | ||
/* #undef _LARGE_FILES */ | ||
|
||
/* Define to 1 if on MINIX. */ | ||
/* #undef _MINIX */ | ||
|
||
/* Define to 2 if the system does not provide POSIX.1 features except with | ||
this defined. */ | ||
/* #undef _POSIX_1_SOURCE */ | ||
|
||
/* Define to 1 if you need to in order for `stat' and other things to work. */ | ||
/* #undef _POSIX_SOURCE */ | ||
|
||
/* We need at least WindowsXP for getaddrinfo/freeaddrinfo */ | ||
/* #undef _WIN32_WINNT */ | ||
|
||
/* Define to `__inline__' or `__inline' if that's what the C compiler | ||
calls it, or to nothing if 'inline' is not supported under any name. */ | ||
#ifndef __cplusplus | ||
/* #undef inline */ | ||
#endif |
Submodule rnnoise-src
added at
d98345
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.