-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT(client): Add ReNameNoise as a replacement for RNNoise
- Loading branch information
Showing
17 changed files
with
164 additions
and
263 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
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,50 @@ | ||
# 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(RENAMENOISE_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../renamenoise-src") | ||
|
||
if(NOT EXISTS "${RENAMENOISE_SRC_DIR}/COPYING") | ||
message(FATAL_ERROR | ||
"${RENAMENOISE_SRC_DIR} was not found.\n" | ||
"Please checkout the submodule:\n" | ||
"git submodule update --init --recursive" | ||
) | ||
endif() | ||
|
||
if(WIN32) | ||
add_library(renamenoise SHARED) | ||
set_target_properties(renamenoise PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
if(MINGW) | ||
# Remove "lib" prefix. | ||
set_target_properties(renamenoise PROPERTIES PREFIX "") | ||
endif() | ||
target_compile_definitions(renamenoise | ||
PRIVATE | ||
"WIN32" | ||
"DLL_EXPORT" | ||
) | ||
else() | ||
add_library(renamenoise STATIC) | ||
endif() | ||
|
||
target_compile_definitions(renamenoise PRIVATE "HAVE_CONFIG_H") | ||
|
||
target_include_directories(renamenoise | ||
PRIVATE SYSTEM | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
PUBLIC SYSTEM | ||
"${RENAMENOISE_SRC_DIR}/include" | ||
) | ||
|
||
target_sources(renamenoise PRIVATE | ||
"${RENAMENOISE_SRC_DIR}/src/rnn_data.c" | ||
"${RENAMENOISE_SRC_DIR}/src/rnn.c" | ||
"${RENAMENOISE_SRC_DIR}/src/pitch.c" | ||
"${RENAMENOISE_SRC_DIR}/src/renamenoise_fft.c" | ||
"${RENAMENOISE_SRC_DIR}/src/denoise.c" | ||
"${RENAMENOISE_SRC_DIR}/src/renamenoise_lpc.c" | ||
) | ||
|
||
target_disable_warnings(renamenoise) |
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,46 @@ | ||
/* config.h. Generated from config.h.in by configure. */ | ||
/* config.h.in. Generated from configure.ac by autoheader. */ | ||
|
||
/* 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 "[email protected]" | ||
|
||
/* Define to the full name of this package. */ | ||
#define PACKAGE_NAME "renamenoise" | ||
|
||
/* Define to the full name and version of this package. */ | ||
#define PACKAGE_STRING "renamenoise unknown" | ||
|
||
/* Define to the one symbol short name of this package. */ | ||
#define PACKAGE_TARNAME "renamenoise" | ||
|
||
/* 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 RENAMENOISE_BUILD /**/ | ||
|
||
/* 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 | ||
|
||
/* 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 renamenoise-src
added at
08248d
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule rnnoise-src
deleted from
a9afcc
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.