frame/audio: implement From<Frame>
This commit is contained in:
parent
0e83f8a0c4
commit
71d14e15ba
@ -252,6 +252,12 @@ impl Clone for Audio {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Frame> for Audio {
|
||||||
|
fn from(frame: Frame) -> Self {
|
||||||
|
Audio(frame)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub unsafe trait Sample {
|
pub unsafe trait Sample {
|
||||||
fn is_valid(format: format::Sample, channels: u16) -> bool;
|
fn is_valid(format: format::Sample, channels: u16) -> bool;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user