frame/audio: implement From<Frame>

This commit is contained in:
lummax 2015-09-02 12:43:44 +02:00
parent 0e83f8a0c4
commit 71d14e15ba

View File

@ -252,6 +252,12 @@ impl Clone for Audio {
}
}
impl From<Frame> for Audio {
fn from(frame: Frame) -> Self {
Audio(frame)
}
}
pub unsafe trait Sample {
fn is_valid(format: format::Sample, channels: u16) -> bool;
}