summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2012-11-14 16:30:57 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-11-14 16:31:02 -0800
commitd202ef9380fe6c7b4227d7480b2f05860261821c (patch)
tree87bb4db2fb05656dd765ee98a540ca840e3e01a7
parent54645557cbe75b22c35100741e2ce4ae1e3df97e (diff)
parent85fbc871ded0f71f9638f85e7d2f03a35bf39dda (diff)
Merge "Use uint32_t for sample rate"
-rw-r--r--core/jni/android_media_AudioTrack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_media_AudioTrack.cpp b/core/jni/android_media_AudioTrack.cpp
index 7e5263d036be..b4d5ee61dfc1 100644
--- a/core/jni/android_media_AudioTrack.cpp
+++ b/core/jni/android_media_AudioTrack.cpp
@@ -206,7 +206,7 @@ android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_th
{
ALOGV("sampleRate=%d, audioFormat(from Java)=%d, channel mask=%x, buffSize=%d",
sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes);
- int afSampleRate;
+ uint32_t afSampleRate;
int afFrameCount;
if (AudioSystem::getOutputFrameCount(&afFrameCount, (audio_stream_type_t) streamType) != NO_ERROR) {
@@ -750,7 +750,7 @@ static jint android_media_AudioTrack_reload(JNIEnv *env, jobject thiz) {
// ----------------------------------------------------------------------------
static jint android_media_AudioTrack_get_output_sample_rate(JNIEnv *env, jobject thiz,
jint javaStreamType) {
- int afSamplingRate;
+ uint32_t afSamplingRate;
// convert the stream type from Java to native value
// FIXME: code duplication with android_media_AudioTrack_native_setup()
audio_stream_type_t nativeStreamType;