summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright/SineSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-01 15:26:54 -0800
committerAndreas Huber <andih@google.com>2009-12-01 15:26:54 -0800
commitc297fccffc4ab1cb3b9f5c6a5b0802be057f3e0f (patch)
tree7f7bd7bfa58df757385ab01ffcd3fd7e27351cfb /cmds/stagefright/SineSource.cpp
parenta7c816c4bdb72cf4f9fe853a96cd7efdb394006d (diff)
downloadframeworks_av-c297fccffc4ab1cb3b9f5c6a5b0802be057f3e0f.zip
frameworks_av-c297fccffc4ab1cb3b9f5c6a5b0802be057f3e0f.tar.gz
frameworks_av-c297fccffc4ab1cb3b9f5c6a5b0802be057f3e0f.tar.bz2
A small sample tool to encode pcm audio data to amr, decode it again and play it. Some changes to OMXCodec to properly configure the AMR decoder(s).
Diffstat (limited to 'cmds/stagefright/SineSource.cpp')
-rw-r--r--cmds/stagefright/SineSource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/stagefright/SineSource.cpp b/cmds/stagefright/SineSource.cpp
index e272a65..021f636 100644
--- a/cmds/stagefright/SineSource.cpp
+++ b/cmds/stagefright/SineSource.cpp
@@ -52,6 +52,7 @@ sp<MetaData> SineSource::getFormat() {
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
meta->setInt32(kKeyChannelCount, mNumChannels);
meta->setInt32(kKeySampleRate, mSampleRate);
+ meta->setInt32(kKeyMaxInputSize, kBufferSize);
return meta;
}