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
41
42
43
44
45
46
//! Codec registry helpers for Opus decoder integration.
//!
//! This module provides convenience functions to register [`OpusDecoder`]
//! with Symphonia codec registries.
use CodecRegistry;
use crateOpusDecoder;
/// Register the Opus codec with a Symphonia codec registry.
///
/// This function registers [`OpusDecoder`] with the provided registry,
/// enabling Opus decoding support in Symphonia-based applications.
///
/// # Examples
///
/// ```rust
/// use symphonia::core::codecs::CodecRegistry;
/// use moosicbox_opus::register_opus_codec;
///
/// let mut registry = CodecRegistry::new();
/// register_opus_codec(&mut registry);
/// ```
/// Create a codec registry with Opus support.
///
/// Creates a new [`CodecRegistry`] with default Symphonia codecs and Opus decoder registered.
///
/// # Examples
///
/// ```rust
/// use moosicbox_opus::create_opus_registry;
///
/// let registry = create_opus_registry();
/// // Use the registry with Symphonia to decode Opus streams
/// ```