projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add flush() to decoder interface
[nihav.git]
/
nihav-rad
/
src
/
codecs
/
binkaud.rs
diff --git
a/nihav-rad/src/codecs/binkaud.rs
b/nihav-rad/src/codecs/binkaud.rs
index b0c4fc2305101b07702dc27898820cf065e6dfee..86f4fb0c55b1c38440515bedcaddb05da9d61bbe 100644
(file)
--- a/
nihav-rad/src/codecs/binkaud.rs
+++ b/
nihav-rad/src/codecs/binkaud.rs
@@
-273,6
+273,9
@@
impl NADecoder for BinkAudioDecoder {
Err(DecoderError::InvalidData)
}
}
+ fn flush(&mut self) {
+ self.delay = [[0.0; 256]; 2];
+ }
}
pub fn get_decoder_dct() -> Box<dyn NADecoder> {