1 | // Take a look at the license at the top of the repository in the LICENSE file. |
2 | |
3 | #![cfg_attr (docsrs, feature(doc_cfg))] |
4 | #![allow (clippy::missing_safety_doc)] |
5 | #![doc = include_str!("../README.md" )] |
6 | |
7 | pub use ffi; |
8 | pub use glib; |
9 | pub use gst; |
10 | pub use gst_base; |
11 | |
12 | macro_rules! assert_initialized_main_thread { |
13 | () => { |
14 | if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) { |
15 | gst::assert_initialized(); |
16 | } |
17 | }; |
18 | } |
19 | |
20 | macro_rules! skip_assert_initialized { |
21 | () => {}; |
22 | } |
23 | |
24 | #[allow (clippy::needless_borrow)] |
25 | mod auto; |
26 | pub use crate::auto::*; |
27 | |
28 | mod caps; |
29 | pub use crate::caps::AudioCapsBuilder; |
30 | |
31 | #[cfg (feature = "serde" )] |
32 | mod flag_serde; |
33 | |
34 | mod audio_format; |
35 | pub use crate::audio_format::*; |
36 | mod audio_format_info; |
37 | pub use crate::audio_format_info::*; |
38 | mod audio_ring_buffer_spec; |
39 | pub use crate::audio_ring_buffer_spec::*; |
40 | mod audio_info; |
41 | pub use crate::audio_info::*; |
42 | mod audio_meta; |
43 | pub use crate::audio_meta::*; |
44 | mod audio_channel_position; |
45 | pub use crate::audio_channel_position::*; |
46 | mod audio_aggregator; |
47 | mod audio_aggregator_convert_pad; |
48 | mod audio_aggregator_pad; |
49 | mod audio_stream_align; |
50 | mod functions; |
51 | pub use crate::functions::*; |
52 | #[cfg (feature = "v1_16" )] |
53 | #[cfg_attr (docsrs, doc(cfg(feature = "v1_16" )))] |
54 | pub mod audio_buffer; |
55 | #[cfg (feature = "v1_16" )] |
56 | #[cfg_attr (docsrs, doc(cfg(feature = "v1_16" )))] |
57 | pub use audio_buffer::{AudioBuffer, AudioBufferRef}; |
58 | |
59 | mod audio_decoder; |
60 | mod audio_encoder; |
61 | |
62 | mod audio_converter; |
63 | pub use crate::audio_converter::AudioConverterConfig; |
64 | |
65 | // Re-export all the traits in a prelude module, so that applications |
66 | // can always "use gst_audio::prelude::*" without getting conflicts |
67 | pub mod prelude { |
68 | #[doc (hidden)] |
69 | pub use gst_base::prelude::*; |
70 | |
71 | pub use super::{audio_decoder::AudioDecoderExtManual, audio_encoder::AudioEncoderExtManual}; |
72 | pub use crate::{ |
73 | audio_aggregator::AudioAggregatorExtManual, |
74 | audio_aggregator_convert_pad::AudioAggregatorConvertPadExtManual, |
75 | audio_aggregator_pad::AudioAggregatorPadExtManual, audio_format::AudioFormatIteratorExt, |
76 | auto::traits::*, |
77 | }; |
78 | } |
79 | |
80 | pub mod subclass; |
81 | |