codec: add magic traits to get codecs by name and id
This commit is contained in:
@ -4,6 +4,7 @@ use {ChannelLayout, format};
|
||||
use super::codec::Codec;
|
||||
use ffi::*;
|
||||
|
||||
#[derive(PartialEq, Eq, Copy, Clone)]
|
||||
pub struct Audio {
|
||||
codec: Codec,
|
||||
}
|
||||
|
Reference in New Issue
Block a user