summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/lvpp/DummyAudioSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvideoeditor/lvpp/DummyAudioSource.h')
-rwxr-xr-xlibvideoeditor/lvpp/DummyAudioSource.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvideoeditor/lvpp/DummyAudioSource.h b/libvideoeditor/lvpp/DummyAudioSource.h
index a562bc1..6e6ead4 100755
--- a/libvideoeditor/lvpp/DummyAudioSource.h
+++ b/libvideoeditor/lvpp/DummyAudioSource.h
@@ -45,8 +45,9 @@ public:
virtual status_t start(MetaData *params = NULL);
virtual status_t stop();
virtual sp<MetaData> getFormat();
- virtual status_t read (MediaBuffer **buffer,
+ virtual status_t read (MediaBuffer **buffer,
const MediaSource::ReadOptions *options = NULL);
+ void setDuration (int64_t audioDurationUs);
protected:
DummyAudioSource (int32_t samplingRate,
@@ -63,6 +64,8 @@ private:
int64_t mAudioDurationUs;
int64_t mTimeStampUs;
int32_t mNbBuffer;
+ Mutex mLock;
+
MediaBufferGroup *mBufferGroup;
DummyAudioSource(const DummyAudioSource &);