Merge pull request #64 from tomaka/underflowed
Add an underflow() method to Voice
This commit is contained in:
commit
d3e610a614
4 changed files with 24 additions and 0 deletions
|
|
@ -359,6 +359,12 @@ impl Voice {
|
|||
pub fn pause(&mut self) {
|
||||
self.0.pause()
|
||||
}
|
||||
|
||||
/// Returns true if the voice has finished reading all the data you sent to it.
|
||||
#[inline]
|
||||
pub fn underflowed(&self) -> bool {
|
||||
self.0.underflowed()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T> Deref for Buffer<'a, T> where T: Sample {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue