summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChaithanya Krishna Bacharaju <chaithan@codeaurora.org>2015-08-25 19:04:00 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:25:03 -0600
commitb3e03da4f05a0d3a39ab1c453b3e8103ee78fcf1 (patch)
tree69de501faa641737d83f55b41d7e94eb5cd9a715 /include
parent93cd67d6c1808d814bed69c29d0e3e6bea13f93c (diff)
downloadframeworks_av-b3e03da4f05a0d3a39ab1c453b3e8103ee78fcf1.zip
frameworks_av-b3e03da4f05a0d3a39ab1c453b3e8103ee78fcf1.tar.gz
frameworks_av-b3e03da4f05a0d3a39ab1c453b3e8103ee78fcf1.tar.bz2
AudioSource: Provide option to extend AudioSource
-Extend AudioSource to provide native implementation. Change-Id: I0bba1d4f0c30fa109f64c80100fa0dc6c39a9d02
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/AudioSource.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/media/stagefright/AudioSource.h b/include/media/stagefright/AudioSource.h
index 0c4865a..ed523d8 100644
--- a/include/media/stagefright/AudioSource.h
+++ b/include/media/stagefright/AudioSource.h
@@ -60,7 +60,9 @@ protected:
private:
enum {
- kMaxBufferSize = 2048,
+ //calculated for max duration 80 msec with 48K sampling rate.
+ kMaxBufferSize = 30720,
+
// After the initial mute, we raise the volume linearly
// over kAutoRampDurationUs.
@@ -103,7 +105,7 @@ private:
void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs);
void releaseQueuedFrames_l();
void waitOutstandingEncodingFrames_l();
- status_t reset();
+ virtual status_t reset();
AudioSource(const AudioSource &);
AudioSource &operator=(const AudioSource &);