diff options
author | Chaithanya Krishna Bacharaju <chaithan@codeaurora.org> | 2015-08-25 19:04:00 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:25:03 -0600 |
commit | b3e03da4f05a0d3a39ab1c453b3e8103ee78fcf1 (patch) | |
tree | 69de501faa641737d83f55b41d7e94eb5cd9a715 /include/media/stagefright | |
parent | 93cd67d6c1808d814bed69c29d0e3e6bea13f93c (diff) | |
download | frameworks_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/media/stagefright')
-rw-r--r-- | include/media/stagefright/AudioSource.h | 6 |
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 &); |