summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-04-10 03:27:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-10 03:28:00 +0000
commite62e16371b6c2f33072b3345e1d1853673b9a3d8 (patch)
tree7b771118f2df495918ce679dbd62f42b30392603 /include
parent1c2dc0643141483cb7f90ee032845a1c38fe093a (diff)
parentc5656cc900aeb4a705e27508dd82c70030a97709 (diff)
downloadframeworks_av-e62e16371b6c2f33072b3345e1d1853673b9a3d8.zip
frameworks_av-e62e16371b6c2f33072b3345e1d1853673b9a3d8.tar.gz
frameworks_av-e62e16371b6c2f33072b3345e1d1853673b9a3d8.tar.bz2
Merge "Add playback rate to AudioMixer"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioResamplerPublic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/AudioResamplerPublic.h b/include/media/AudioResamplerPublic.h
index 0634741..3c30148 100644
--- a/include/media/AudioResamplerPublic.h
+++ b/include/media/AudioResamplerPublic.h
@@ -34,6 +34,14 @@
// an int32_t of the phase increments, making the resulting sample rate inexact.
#define AUDIO_RESAMPLER_UP_RATIO_MAX 65536
+#define AUDIO_TIMESTRETCH_SPEED_MIN 0.5f
+#define AUDIO_TIMESTRETCH_SPEED_MAX 2.0f
+#define AUDIO_TIMESTRETCH_SPEED_NORMAL 1.0f
+
+#define AUDIO_TIMESTRETCH_PITCH_MIN 0.5f
+#define AUDIO_TIMESTRETCH_PITCH_MAX 2.0f
+#define AUDIO_TIMESTRETCH_PITCH_NORMAL 1.0f
+
// Returns the source frames needed to resample to destination frames. This is not a precise
// value and depends on the resampler (and possibly how it handles rounding internally).
// Nevertheless, this should be an upper bound on the requirements of the resampler.