-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AchimTuran/master
Initial commit of the alpha version
- Loading branch information
Showing
58 changed files
with
9,418 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
project(adsp.biquad.filters) | ||
|
||
cmake_minimum_required(VERSION 2.6) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) | ||
|
||
enable_language(CXX) | ||
|
||
find_package(kodi REQUIRED) | ||
find_package(kodiplatform REQUIRED) | ||
find_package(TinyXML REQUIRED) | ||
find_package(asplib REQUIRED) | ||
|
||
include_directories(${kodiplatform_INCLUDE_DIRS} | ||
${TINYXML_INCLUDE_DIRS} | ||
${KODI_INCLUDE_DIR} | ||
${asplib_INCLUDE_DIRS} | ||
${PROJECT_SOURCE_DIR}/src | ||
${PROJECT_SOURCE_DIR}/src/template) | ||
|
||
set(TEMPLATE_SOURCES src/DSPProcessor.cpp | ||
src/BiquadFiltersSettings.cpp | ||
src/ADDONOptional.cpp | ||
src/Dialogs/GUIDialogPostProcess.cpp | ||
src/template/AddonHelpers.cpp | ||
src/template/ADSPAddonHandler.cpp | ||
src/template/ADSPHelpers.cpp | ||
src/template/ADSPProcessorHandle.cpp | ||
src/template/client.cpp | ||
src/template/GUIDialogBase.cpp | ||
src/template/IADDONOptional.cpp | ||
src/template/IADSPProcessor.cpp | ||
src/template/Settings/SettingsManager.cpp | ||
src/template/Settings/SettingsHelpers.cpp | ||
src/template/Messages/ADSPModeMessage.cpp | ||
src/template/configuration/templateConfiguration.cpp) | ||
|
||
set(DEPLIBS ${kodiplatform_LIBRARIES} | ||
${ASPLIB_LIBRARIES} | ||
${TINYXML_LIBRARIES}) | ||
|
||
build_addon(adsp.biquad.filters TEMPLATE DEPLIBS) | ||
|
||
# For generating the doxy | ||
find_package(Doxygen) | ||
if(DOXYGEN_FOUND) | ||
add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/doxygen_resources/Doxyfile | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} | ||
COMMENT "Generating API documentation" VERBATIM) | ||
endif() | ||
|
||
include(CPack) |
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,27 @@ | ||
# - Find TinyXML | ||
# Find the native TinyXML includes and library | ||
# | ||
# TINYXML_FOUND - True if TinyXML found. | ||
# TINYXML_INCLUDE_DIRS - where to find tinyxml.h, etc. | ||
# TINYXML_LIBRARIES - List of libraries when using TinyXML. | ||
# | ||
|
||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules (TINYXML tinyxml) | ||
list(APPEND TINYXML_INCLUDE_DIRS ${TINYXML_INCLUDEDIR}) | ||
endif() | ||
if(NOT TINYXML_FOUND) | ||
find_path( TINYXML_INCLUDE_DIRS "tinyxml.h" | ||
PATH_SUFFIXES "tinyxml" ) | ||
|
||
find_library( TINYXML_LIBRARIES | ||
NAMES "tinyxml" | ||
PATH_SUFFIXES "tinyxml" ) | ||
endif() | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include( "FindPackageHandleStandardArgs" ) | ||
find_package_handle_standard_args(TinyXML DEFAULT_MSG TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES ) | ||
|
||
mark_as_advanced(TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES) |
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,30 @@ | ||
# - Try to find libsamplerate | ||
# Once done this will define | ||
# | ||
# ASPLIB_FOUND - system has asplib | ||
# ASPLIB_INCLUDE_DIRS - the asplib include directory | ||
# ASPLIB_LIBRARIES - The asplib libraries | ||
|
||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules (ASPLIB asplib) | ||
list(APPEND ASPLIB_INCLUDE_DIRS ${ASPLIB_INCLUDEDIR}) | ||
endif() | ||
|
||
if(NOT ASPLIB_FOUND) | ||
find_path( ASPLIB_INCLUDE_DIRS "apslib_BiquadFactory.h" | ||
ASPLIB_INCLUDE_DIRS "Biquads/Biquad_Native/asplib_Biquad_Native.h" | ||
ASPLIB_INCLUDE_DIRS "constants_typedefs/asplib_constants.h" | ||
ASPLIB_INCLUDE_DIRS "constants_typedefs/asplib_typedefs.h" | ||
ASPLIB_INCLUDE_DIRS "interfaces/asplib_IBaseBiquad.h" | ||
PATH_SUFFIXES "asplib" ) | ||
|
||
find_library( ASPLIB_LIBRARIES | ||
NAMES "asplib" | ||
PATH_SUFFIXES "asplib" ) | ||
endif() | ||
# handle the QUIETLY and REQUIRED arguments and set SAMPLERATE_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include( "FindPackageHandleStandardArgs" ) | ||
find_package_handle_standard_args(asplib DEFAULT_MSG ASPLIB_INCLUDE_DIRS ASPLIB_LIBRARIES) | ||
|
||
mark_as_advanced(ASPLIB_INCLUDE_DIRS ASPLIB_LIBRARIES) |
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,5 @@ | ||
# Biquad Filters | ||
A AudioDSP Addon for Kodi. | ||
The following processing modes are available: | ||
- 10 Band parametric equalizer post process mode | ||
- more modes are planned for future-versions |
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<addon | ||
id="adsp.biquad.filters" | ||
version="0.0.1" | ||
name="Biquad Filters" | ||
provider-name="Achim Turan, Team KODI"> | ||
<requires> | ||
<c-pluff version="0.1"/> | ||
<import addon="kodi.adsp" version="0.1.8"/> | ||
</requires> | ||
<extension | ||
point="kodi.adsp" | ||
library_linux="adsp.biquad.filters.so" | ||
library_osx="adsp.biquad.filters.dylib" | ||
library_wingl="adsp.biquad.filters.dll" | ||
library_windx="adsp.biquad.filters.dll" | ||
library_android="libadsp.biquad.filters.so" /> | ||
<extension point="kodi.addon.metadata"> | ||
<summary lang="en">Includes several Biquad Filter processing modes</summary> | ||
<description lang="en">Parametric Equalizer post processing mode with constant-Q peaking filters (Biquads or Second Order Sections). It's very flexible, because you can configure several pre- or postprocessing modes with variable Bands. E.g. postprocessing mode with 10 Bands. For better configuration of the gain of each audio band it uses peaklevel meters.</description> | ||
<disclaimer lang="en">Note: it's a pre alpha version. At first please always use a low auio volume to pretect yor ears.</disclaimer> | ||
<platform>all</platform> | ||
</extension> | ||
</addon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions
115
adsp.biquad.filters/resources/language/English/strings.po
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,115 @@ | ||
# Kodi language file | ||
# Addon Name: AudioDSP parametric EQ | ||
# Addon id: adsp.parametric.eq | ||
# Addon version: 0.0.1 | ||
# Addon Provider: Achim Turan, Team Kodi | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: XBMC Main Translation Project (Frodo)\n" | ||
"Report-Msgid-Bugs-To: http://trac.xbmc.org/\n" | ||
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: XBMC Translation Team\n" | ||
"Language-Team: English (http://www.transifex.com/projects/p/XBMC-Main-Frodo/language/en/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: en\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#settings labels | ||
|
||
# template configuration: src/template/configuration/templateConfiguration.cpp | ||
msgctxt "#30000" | ||
msgid "Parametric EQ" | ||
msgstr "" | ||
|
||
# template configuration: src/template/configuration/templateConfiguration.cpp | ||
msgctxt "#30001" | ||
msgid "Setup Parametric EQ" | ||
msgstr "" | ||
|
||
# template configuration: src/template/configuration/templateConfiguration.cpp | ||
msgctxt "#30002" | ||
msgid "10 frequency bands + post gain" | ||
msgstr "" | ||
|
||
# template configuration: src/template/configuration/templateConfiguration.cpp | ||
msgctxt "#30003" | ||
msgid "ToDo: Place a help for Parametric EQ. All strings are placed in resources/language/<Language>/strings.po" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30100" | ||
msgid "Parametric EQ - Settings" | ||
msgstr "" | ||
|
||
# Parametric EQ Addon Settings: resources/settings.xml | ||
msgctxt "#30120" | ||
msgid "Enable Postprocess Parametric EQ" | ||
msgstr "" | ||
|
||
# Parametric EQ Addon Settings: resources/settings.xml | ||
msgctxt "#30111" | ||
msgid "Enable Preprocess Parametric EQ" | ||
msgstr "" | ||
|
||
# Parametric EQ Addon Settings: resources/parametricEQSettings.xml | ||
msgctxt "#30122" | ||
msgid "Enable Parameter Fading" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30150" | ||
msgid "Preamp" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30151" | ||
msgid "32Hz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30152" | ||
msgid "64Hz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30153" | ||
msgid "125Hz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30154" | ||
msgid "250Hz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30155" | ||
msgid "500Hz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30156" | ||
msgid "1kHz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30157" | ||
msgid "2kHz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30158" | ||
msgid "4kHz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30159" | ||
msgid "8kHz" | ||
msgstr "" | ||
|
||
# Dialog Parametric EQ: resources/skins/Confluence/720p/DialogParametricEQ.xml | ||
msgctxt "#30160" | ||
msgid "16kHz" | ||
msgstr "" |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<settings> | ||
<setting id="postprocess_eq" type="bool" label="30120" default="true"/> | ||
<setting id="preprocess_eq" type="bool" label="30121" default="false"/> | ||
<setting id="parameter_fading" type="bool" label="30122" default="false"/> | ||
</settings> |
Oops, something went wrong.