summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-03-26 19:04:33 -0700
committerAndy Hung <hunga@google.com>2015-04-09 12:37:01 -0700
commitc5656cc900aeb4a705e27508dd82c70030a97709 (patch)
tree930d4266db7b4d93eb7ade5629812a722dc7920f /include
parent857d5a20a956ef61b64ae07b018ecc2f1eb0a503 (diff)
downloadframeworks_av-c5656cc900aeb4a705e27508dd82c70030a97709.zip
frameworks_av-c5656cc900aeb4a705e27508dd82c70030a97709.tar.gz
frameworks_av-c5656cc900aeb4a705e27508dd82c70030a97709.tar.bz2
Add playback rate to AudioMixer
Bug: 19196501 Change-Id: I42d1f90e6297cf3f1304860d1691a5dfedd4c37d
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.