The sound equalizer is using the Audaspace FFT Convolver. The blender part creates an array of descriptions of power per "band" and orders the creation of Equalizer (ISound) in the Audaspace. Modifier can be created on sound strips. It lets you define amplification or attenuation over frequency range from 30Hz to 20 kHz. The power is limited to -30 db - 30 db. This is done using curve mapping widget. Co-authored-by: menda <alguien@aqui.es> Co-authored-by: Richard Antalik <richardantalik@gmail.com> Pull Request: https://projects.blender.org/blender/blender/pulls/105613
80 lines
1.7 KiB
CMake
80 lines
1.7 KiB
CMake
# SPDX-FileCopyrightText: 2011 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# - Find Fftw3 library
|
|
# Find the native Fftw3 includes and library
|
|
# This module defines
|
|
# FFTW3_INCLUDE_DIRS, where to find fftw3.h, Set when
|
|
# FFTW3_INCLUDE_DIR is found.
|
|
# FFTW3_LIBRARIES, libraries to link against to use Fftw3.
|
|
# FFTW3_ROOT_DIR, The base directory to search for Fftw3.
|
|
# This can also be an environment variable.
|
|
# FFTW3_FOUND, If false, do not try to use Fftw3.
|
|
#
|
|
# also defined, but not for general use are
|
|
# FFTW3_LIBRARY, where to find the Fftw3 library.
|
|
|
|
# If `FFTW3_ROOT_DIR` was defined in the environment, use it.
|
|
if(DEFINED FFTW3_ROOT_DIR)
|
|
# Pass.
|
|
elseif(DEFINED ENV{FFTW3_ROOT_DIR})
|
|
set(FFTW3_ROOT_DIR $ENV{FFTW3_ROOT_DIR})
|
|
else()
|
|
set(FFTW3_ROOT_DIR "")
|
|
endif()
|
|
|
|
set(_fftw3_SEARCH_DIRS
|
|
${FFTW3_ROOT_DIR}
|
|
)
|
|
|
|
find_path(FFTW3_INCLUDE_DIR
|
|
NAMES
|
|
fftw3.h
|
|
HINTS
|
|
${_fftw3_SEARCH_DIRS}
|
|
PATH_SUFFIXES
|
|
include
|
|
)
|
|
|
|
set(_FFTW3_LIBRARIES)
|
|
|
|
find_library(FFTW3_LIBRARY_F
|
|
NAMES
|
|
fftw3f
|
|
HINTS
|
|
${_fftw3_SEARCH_DIRS}
|
|
PATH_SUFFIXES
|
|
lib64 lib
|
|
)
|
|
|
|
find_library(FFTW3_LIBRARY_D
|
|
NAMES
|
|
fftw3
|
|
HINTS
|
|
${_fftw3_SEARCH_DIRS}
|
|
PATH_SUFFIXES
|
|
lib64 lib
|
|
)
|
|
|
|
list(APPEND _FFTW3_LIBRARIES "${FFTW3_LIBRARY_F}")
|
|
list(APPEND _FFTW3_LIBRARIES "${FFTW3_LIBRARY_D}")
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set FFTW3_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Fftw3 DEFAULT_MSG
|
|
_FFTW3_LIBRARIES FFTW3_INCLUDE_DIR)
|
|
|
|
if(FFTW3_FOUND)
|
|
set(FFTW3_LIBRARIES ${_FFTW3_LIBRARIES})
|
|
set(FFTW3_INCLUDE_DIRS ${FFTW3_INCLUDE_DIR})
|
|
endif()
|
|
|
|
unset(_FFTW3_LIBRARIES)
|
|
|
|
mark_as_advanced(
|
|
FFTW3_INCLUDE_DIR
|
|
FFTW3_LIBRARY
|
|
)
|