fix(apu): don't spin if ringbuf is full
This commit is contained in:
@@ -47,6 +47,11 @@ impl<T> SampleProducer<T> {
|
||||
pub(crate) fn is_full(&self) -> bool {
|
||||
self.inner.is_full()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn two_available(&self) -> bool {
|
||||
self.inner.slots() > 2
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> std::fmt::Debug for SampleProducer<T> {
|
||||
|
Reference in New Issue
Block a user