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