From 668bd3445ecb39483160bbb310afa4337c83d0d9 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 25 Apr 2010 22:54:58 +0000 Subject: Remove lots of simulator-speficic #ifdef'ing in sound.c to allow for DSP effects in the sims, e.g. for bass and treble (targets that do those effects in HW don't simulate using dsp). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25719 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/audiohw.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'firmware/export/audiohw.h') diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 91df2dd8b9..781bc12f8e 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h @@ -65,6 +65,20 @@ #include "ak4537.h" #endif + + +#define ONE_DB 10 + +#if !defined(VOLUME_MIN) && !defined(VOLUME_MAX) +#warning define for VOLUME_MIN and VOLUME_MAX is missing +#define VOLUME_MIN -700 +#define VOLUME_MAX 0 +#endif + +/* volume/balance/treble/bass interdependency main part */ +#define VOLUME_RANGE (VOLUME_MAX - VOLUME_MIN) + + /* convert caps into defines */ #ifdef AUDIOHW_CAPS #if (AUDIOHW_CAPS & TREBLE_CAP) -- cgit v1.2.3