aboutsummaryrefslogtreecommitdiffstats
path: root/mumd
diff options
context:
space:
mode:
authorEskil Q <eskilq@kth.se>2021-01-02 08:55:18 +0100
committerEskil Q <eskilq@kth.se>2021-01-02 08:55:18 +0100
commitbcf60257a86fec924dda8c71ab3a5fe0be5b74cd (patch)
tree1137a19bbe2969e7235a3460b127f3c3d608bbd0 /mumd
parent22481e0fd03102d2fa01a5025049c10a5539e356 (diff)
downloadmum-bcf60257a86fec924dda8c71ab3a5fe0be5b74cd.tar.gz
add is_exhausted method to StreamingSignal trait
Diffstat (limited to 'mumd')
-rw-r--r--mumd/src/audio.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs
index 7d4929c..9c9648b 100644
--- a/mumd/src/audio.rs
+++ b/mumd/src/audio.rs
@@ -429,6 +429,10 @@ trait StreamingSignal {
type Frame: Frame;
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Frame>;
+
+ fn is_exhausted(&self) -> bool {
+ false
+ }
}
impl<S> StreamingSignal for S