codec: add magic traits to get codecs by name and id

This commit is contained in:
meh
2015-09-25 21:33:08 +02:00
parent bde17a8bae
commit 66284eb045
12 changed files with 396 additions and 254 deletions

View File

@ -4,6 +4,7 @@ use {ChannelLayout, format};
use super::codec::Codec;
use ffi::*;
#[derive(PartialEq, Eq, Copy, Clone)]
pub struct Audio {
codec: Codec,
}