Skip to main content

lofty/aac/
mod.rs

1//! AAC (ADTS) specific items
2
3// TODO: Currently we only support ADTS, might want to look into ADIF in the future.
4
5mod header;
6mod properties;
7mod read;
8
9use crate::id3::v1::tag::Id3v1Tag;
10use crate::id3::v2::tag::Id3v2Tag;
11
12use lofty_attr::LoftyFile;
13
14// Exports
15
16pub use properties::AACProperties;
17
18/// An AAC (ADTS) file
19#[derive(LoftyFile, Default)]
20#[lofty(read_fn = "read::read_from")]
21#[lofty(internal_write_module_do_not_use_anywhere_else)]
22pub struct AacFile {
23	#[lofty(tag_type = "Id3v2")]
24	pub(crate) id3v2_tag: Option<Id3v2Tag>,
25	#[lofty(tag_type = "Id3v1")]
26	pub(crate) id3v1_tag: Option<Id3v1Tag>,
27	pub(crate) properties: AACProperties,
28}