commit | 08c05dd017c07b08d5701e52a7eba8b873ee8706 | [log] [tgz] |
---|---|---|
author | Shunkai Yao <yaoshunkai@google.com> | Thu Jan 25 00:45:55 2024 +0000 |
committer | Shunkai Yao <yaoshunkai@google.com> | Fri Jan 26 18:59:13 2024 +0000 |
tree | 5055a6041b5cc485f299f717a17bfd74ad311a90 | |
parent | d6650e5b3365369ed3885253ba22bee0e97ea5c8 [diff] [blame] |
Update work buffer size with input/output frame size change call process with the minimal of input/output fmq data capacity Bug: 321543210 Test: atest VtsHalAudioEffectTargetTest Test: flash to pixel phone and test audio Change-Id: I0c5087f541dc8526ac733a0c35f0d06f878d78a1
diff --git a/audio/aidl/default/include/effect-impl/EffectContext.h b/audio/aidl/default/include/effect-impl/EffectContext.h index 24f3b5d..b3d730d 100644 --- a/audio/aidl/default/include/effect-impl/EffectContext.h +++ b/audio/aidl/default/include/effect-impl/EffectContext.h
@@ -49,6 +49,7 @@ std::shared_ptr<DataMQ> getOutputDataFmq() const; float* getWorkBuffer(); + size_t getWorkBufferSize() const; // reset buffer status by abandon input data in FMQ void resetBuffer();