fix(apu): incremental improvements to APU accuracy
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-08-03 14:10:08 -05:00
parent 33be2e0e83
commit 32b597a328
3 changed files with 157 additions and 162 deletions

View File

@@ -43,9 +43,17 @@ impl<T> SampleProducer<T> {
self.inner.push(value)
}
pub(crate) fn two_available(&self) -> bool {
pub(crate) fn available(&self) -> bool {
self.inner.slots() > 2
}
pub(crate) fn available_block(&self) -> bool {
loop {
if self.inner.slots() > 2 {
break true;
}
}
}
}
impl<T> std::fmt::Debug for SampleProducer<T> {