1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! FLAC native container muxer.
//!
//! This module provides a muxer for creating native FLAC files.
//! FLAC (Free Lossless Audio Codec) uses its own container format
//! with metadata blocks followed by audio frames.
//!
//! # Metadata Blocks
//!
//! - STREAMINFO (required): Contains stream parameters
//! - PADDING: Optional padding for future metadata
//! - APPLICATION: Application-specific data
//! - SEEKTABLE: Seek points for random access
//! - `VORBIS_COMMENT`: Metadata tags (title, artist, etc.)
//! - CUESHEET: CD-style cue information
//! - PICTURE: Embedded artwork
//!
//! # Example
//!
//! ```ignore
//! use oximedia_container::mux::{FlacMuxer, Muxer, MuxerConfig};
//!
//! let config = MuxerConfig::new()
//! .with_title("My Song")
//! .with_muxing_app("OxiMedia");
//!
//! let mut muxer = FlacMuxer::new(sink, config);
//!
//! muxer.add_stream(audio_info)?;
//! muxer.write_header().await?;
//!
//! for packet in packets {
//! muxer.write_packet(&packet).await?;
//! }
//!
//! muxer.write_trailer().await?;
//! ```
pub use FlacMuxer;