Skip to content

Commit

Permalink
Merge pull request #1 from AchimTuran/master
Browse files Browse the repository at this point in the history
Initial commit of the alpha version
  • Loading branch information
AchimTuran committed May 9, 2015
2 parents 8a73b93 + e76873f commit 0edb306
Show file tree
Hide file tree
Showing 58 changed files with 9,418 additions and 0 deletions.
52 changes: 52 additions & 0 deletions CMakeLists.txt
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)
27 changes: 27 additions & 0 deletions FindTinyXML.cmake
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)
30 changes: 30 additions & 0 deletions Findasplib.cmake
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)
5 changes: 5 additions & 0 deletions README.md
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
24 changes: 24 additions & 0 deletions adsp.biquad.filters/addon.xml
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>
Binary file added adsp.biquad.filters/icon.png
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 adsp.biquad.filters/resources/language/English/strings.po
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 ""
6 changes: 6 additions & 0 deletions adsp.biquad.filters/resources/settings.xml
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>
Loading

0 comments on commit 0edb306

Please sign in to comment.