diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-04-23 03:20:49 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-04-27 06:59:27 +0200 |
commit | 08199cd6cb1e2c600eb16ce077cc308fee82de33 (patch) | |
tree | 5c33c39092a5f5aa65f6ac104f3fee54c5041519 /firmware/export/audiohw.h | |
parent | 370ed6de7c7596b2a1f6a2f99c8070bd179b4abd (diff) |
Provide high resolution volume and prescaler to hosted targets.
HAVE_SW_VOLUME_CONTROL is required and at this time only affects the
SDL targets using pcm-sdl.c.
Enables balance control in SDL targets, unless mono volume is in use.
Compiles software volume control as unbuffered when
PCM_SW_VOLUME_UNBUFFERED is defined. This avoids the overhead and
extra latency introduced by the double buffer when it is not needed.
Use this config when the target's PCM driver is buffered and sufficient
latency exists to perform safely the volume scaling.
Simulated targets that are double-buffered when made as native targets
remain so in the sim in order to run the same code.
Change-Id: Ifa77d2d3ae7376c65afecdfc785a084478cb5ffb
Reviewed-on: http://gerrit.rockbox.org/457
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 843ac0c0c4..4379c20a79 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h @@ -111,11 +111,6 @@ struct sound_settings_info #include "hosted_codec.h" #endif -#if defined(SIMULATOR) && !defined(HAVE_SW_VOLUME_CONTROL) -/* For now, without software volume control, sim only supports mono control */ -#define AUDIOHW_HAVE_MONO_VOLUME -#endif - /* convert caps into defines */ #ifdef AUDIOHW_CAPS /* Tone controls */ |