// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #![cfg(unix)] use gstreamer_audio_sys::*; use std::env; use std::error::Error; use std::ffi::OsString; use std::mem::{align_of, size_of}; use std::path::Path; use std::process::{Command, Stdio}; use std::str; use tempfile::Builder; static PACKAGES: &[&str] = &["gstreamer-audio-1.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic args.push("-std=c11".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {cmd:?} failed, {status}").into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{name} {err}").into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn summary(&self) -> String { format!("{} passed; {} failed", self.passed, self.failed) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let mut c_constants: Vec<(String, String)> = Vec::new(); for l in get_c_output("constant").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing ';' separator"); c_constants.push((name.to_owned(), value.to_owned())); } let mut results = Results::default(); for ((rust_name, rust_value), (c_name, c_value)) in RUST_CONSTANTS.iter().zip(c_constants.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_value != c_value { results.record_failed(); eprintln!( "Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}", ); continue; } results.record_passed(); } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let mut c_layouts = Vec::new(); for l in get_c_output("layout").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing first ';' separator"); let (size, alignment) = value.split_once(';').expect("Missing second ';' separator"); let size = size.parse().expect("Failed to parse size"); let alignment = alignment.parse().expect("Failed to parse alignment"); c_layouts.push((name.to_owned(), Layout { size, alignment })); } let mut results = Results::default(); for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_layout != c_layout { results.record_failed(); eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",); continue; } results.record_passed(); } results.expect_total_success(); } fn get_c_output(name: &str) -> Result> { let tmpdir = Builder::new().prefix("abi").tempdir()?; let exe = tmpdir.path().join(name); let c_file = Path::new("tests").join(name).with_extension("c"); let cc = Compiler::new().expect("configured compiler"); cc.compile(&c_file, &exe)?; let mut cmd = Command::new(exe); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } Ok(String::from_utf8(out.stdout)?) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ( "GstAudioAggregator", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorConvertPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorConvertPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSink", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkDiscontReason", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkSlaveMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrcSlaveMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBuffer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcTrack", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioChannelMixerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioChannelPosition", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClippingMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClock", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClockClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioConverterFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDecoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDecoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDitherMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDownmixMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioEncoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioEncoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFilter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFilterClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormatFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormatInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioLayout", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioLevelMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioNoiseShapingMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioPackFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioQuantizeFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFilterInterpolation", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFilterMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBuffer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferFormatType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferSpec", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSink", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSinkClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSinkClassExtension", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstDsdFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstDsdInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstDsdPlaneOffsetMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstStreamVolumeFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstStreamVolumeInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT", "4"), ( "(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE", "5", ), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH", "2"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS", "1"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT", "0"), ( "(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY", "3", ), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_CUSTOM", "3"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_NONE", "2"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE", "0"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_SKEW", "1"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_NONE", "3"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE", "0"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP", "1"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_SKEW", "2"), ("(gint) GST_AUDIO_CD_SRC_MODE_CONTINUOUS", "1"), ("(gint) GST_AUDIO_CD_SRC_MODE_NORMAL", "0"), ("GST_AUDIO_CHANNELS_RANGE", "(int) [ 1, max ]"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE", "0"), ( "(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN", "1", ), ( "(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT", "2", ), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN", "4"), ( "(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT", "8", ), ( "(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER", "21", ), ("(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT", "22"), ("(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT", "23"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER", "2"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT", "0"), ( "(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER", "6", ), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT", "1"), ( "(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER", "7", ), ("(gint) GST_AUDIO_CHANNEL_POSITION_INVALID", "-1"), ("(gint) GST_AUDIO_CHANNEL_POSITION_LFE1", "3"), ("(gint) GST_AUDIO_CHANNEL_POSITION_LFE2", "9"), ("(gint) GST_AUDIO_CHANNEL_POSITION_MONO", "-2"), ("(gint) GST_AUDIO_CHANNEL_POSITION_NONE", "-3"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_CENTER", "8"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_LEFT", "4"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT", "5"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT", "10"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT", "11"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT", "26"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT", "27"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_CENTER", "15"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER", "14"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT", "12"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT", "13"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER", "20"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT", "16"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT", "17"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT", "18"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT", "19"), ("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT", "24"), ("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT", "25"), ("(guint) GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE", "1"), ("(guint) GST_AUDIO_CONVERTER_FLAG_NONE", "0"), ("(guint) GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE", "2"), ( "GST_AUDIO_CONVERTER_OPT_DITHER_METHOD", "GstAudioConverter.dither-method", ), ( "GST_AUDIO_CONVERTER_OPT_DITHER_THRESHOLD", "GstAudioConverter.dither-threshold", ), ( "GST_AUDIO_CONVERTER_OPT_MIX_MATRIX", "GstAudioConverter.mix-matrix", ), ( "GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD", "GstAudioConverter.noise-shaping-method", ), ( "GST_AUDIO_CONVERTER_OPT_QUANTIZATION", "GstAudioConverter.quantization", ), ( "GST_AUDIO_CONVERTER_OPT_RESAMPLER_METHOD", "GstAudioConverter.resampler-method", ), ("GST_AUDIO_DECODER_MAX_ERRORS", "-1"), ("GST_AUDIO_DECODER_SINK_NAME", "sink"), ("GST_AUDIO_DECODER_SRC_NAME", "src"), ("GST_AUDIO_DEF_CHANNELS", "2"), ("GST_AUDIO_DEF_FORMAT", "S16LE"), ("GST_AUDIO_DEF_RATE", "44100"), ("(gint) GST_AUDIO_DITHER_NONE", "0"), ("(gint) GST_AUDIO_DITHER_RPDF", "1"), ("(gint) GST_AUDIO_DITHER_TPDF", "2"), ("(gint) GST_AUDIO_DITHER_TPDF_HF", "3"), ("GST_AUDIO_ENCODER_SINK_NAME", "sink"), ("GST_AUDIO_ENCODER_SRC_NAME", "src"), ("(guint) GST_AUDIO_FLAG_NONE", "0"), ("(guint) GST_AUDIO_FLAG_UNPOSITIONED", "1"), ("(gint) GST_AUDIO_FORMAT_ENCODED", "1"), ("(gint) GST_AUDIO_FORMAT_F32", "28"), ("(gint) GST_AUDIO_FORMAT_F32BE", "29"), ("(gint) GST_AUDIO_FORMAT_F32LE", "28"), ("(gint) GST_AUDIO_FORMAT_F64", "30"), ("(gint) GST_AUDIO_FORMAT_F64BE", "31"), ("(gint) GST_AUDIO_FORMAT_F64LE", "30"), ("(guint) GST_AUDIO_FORMAT_FLAG_COMPLEX", "16"), ("(guint) GST_AUDIO_FORMAT_FLAG_FLOAT", "2"), ("(guint) GST_AUDIO_FORMAT_FLAG_INTEGER", "1"), ("(guint) GST_AUDIO_FORMAT_FLAG_SIGNED", "4"), ("(guint) GST_AUDIO_FORMAT_FLAG_UNPACK", "32"), ("(gint) GST_AUDIO_FORMAT_S16", "4"), ("(gint) GST_AUDIO_FORMAT_S16BE", "5"), ("(gint) GST_AUDIO_FORMAT_S16LE", "4"), ("(gint) GST_AUDIO_FORMAT_S18", "24"), ("(gint) GST_AUDIO_FORMAT_S18BE", "25"), ("(gint) GST_AUDIO_FORMAT_S18LE", "24"), ("(gint) GST_AUDIO_FORMAT_S20", "20"), ("(gint) GST_AUDIO_FORMAT_S20BE", "21"), ("(gint) GST_AUDIO_FORMAT_S20LE", "20"), ("(gint) GST_AUDIO_FORMAT_S24", "16"), ("(gint) GST_AUDIO_FORMAT_S24BE", "17"), ("(gint) GST_AUDIO_FORMAT_S24LE", "16"), ("(gint) GST_AUDIO_FORMAT_S24_32", "8"), ("(gint) GST_AUDIO_FORMAT_S24_32BE", "9"), ("(gint) GST_AUDIO_FORMAT_S24_32LE", "8"), ("(gint) GST_AUDIO_FORMAT_S32", "12"), ("(gint) GST_AUDIO_FORMAT_S32BE", "13"), ("(gint) GST_AUDIO_FORMAT_S32LE", "12"), ("(gint) GST_AUDIO_FORMAT_S8", "2"), ("(gint) GST_AUDIO_FORMAT_U16", "6"), ("(gint) GST_AUDIO_FORMAT_U16BE", "7"), ("(gint) GST_AUDIO_FORMAT_U16LE", "6"), ("(gint) GST_AUDIO_FORMAT_U18", "26"), ("(gint) GST_AUDIO_FORMAT_U18BE", "27"), ("(gint) GST_AUDIO_FORMAT_U18LE", "26"), ("(gint) GST_AUDIO_FORMAT_U20", "22"), ("(gint) GST_AUDIO_FORMAT_U20BE", "23"), ("(gint) GST_AUDIO_FORMAT_U20LE", "22"), ("(gint) GST_AUDIO_FORMAT_U24", "18"), ("(gint) GST_AUDIO_FORMAT_U24BE", "19"), ("(gint) GST_AUDIO_FORMAT_U24LE", "18"), ("(gint) GST_AUDIO_FORMAT_U24_32", "10"), ("(gint) GST_AUDIO_FORMAT_U24_32BE", "11"), ("(gint) GST_AUDIO_FORMAT_U24_32LE", "10"), ("(gint) GST_AUDIO_FORMAT_U32", "14"), ("(gint) GST_AUDIO_FORMAT_U32BE", "15"), ("(gint) GST_AUDIO_FORMAT_U32LE", "14"), ("(gint) GST_AUDIO_FORMAT_U8", "3"), ("(gint) GST_AUDIO_FORMAT_UNKNOWN", "0"), ("(gint) GST_AUDIO_LAYOUT_INTERLEAVED", "0"), ("(gint) GST_AUDIO_LAYOUT_NON_INTERLEAVED", "1"), ("(gint) GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK", "1"), ("(gint) GST_AUDIO_NOISE_SHAPING_HIGH", "4"), ("(gint) GST_AUDIO_NOISE_SHAPING_MEDIUM", "3"), ("(gint) GST_AUDIO_NOISE_SHAPING_NONE", "0"), ("(gint) GST_AUDIO_NOISE_SHAPING_SIMPLE", "2"), ("(guint) GST_AUDIO_PACK_FLAG_NONE", "0"), ("(guint) GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE", "1"), ("(guint) GST_AUDIO_QUANTIZE_FLAG_NONE", "0"), ("(guint) GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED", "1"), ("GST_AUDIO_RATE_RANGE", "(int) [ 1, max ]"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC", "2"), ( "(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR", "1", ), ("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE", "0"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO", "2"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_FULL", "1"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED", "0"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NONE", "0"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN", "1"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT", "2"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE", "4"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL", "3"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_CUBIC", "2"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_KAISER", "4"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_LINEAR", "1"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_NEAREST", "0"), ( "GST_AUDIO_RESAMPLER_OPT_CUBIC_B", "GstAudioResampler.cubic-b", ), ( "GST_AUDIO_RESAMPLER_OPT_CUBIC_C", "GstAudioResampler.cubic-c", ), ("GST_AUDIO_RESAMPLER_OPT_CUTOFF", "GstAudioResampler.cutoff"), ( "GST_AUDIO_RESAMPLER_OPT_FILTER_INTERPOLATION", "GstAudioResampler.filter-interpolation", ), ( "GST_AUDIO_RESAMPLER_OPT_FILTER_MODE", "GstAudioResampler.filter-mode", ), ( "GST_AUDIO_RESAMPLER_OPT_FILTER_MODE_THRESHOLD", "GstAudioResampler.filter-mode-threshold", ), ( "GST_AUDIO_RESAMPLER_OPT_FILTER_OVERSAMPLE", "GstAudioResampler.filter-oversample", ), ( "GST_AUDIO_RESAMPLER_OPT_MAX_PHASE_ERROR", "GstAudioResampler.max-phase-error", ), ("GST_AUDIO_RESAMPLER_OPT_N_TAPS", "GstAudioResampler.n-taps"), ( "GST_AUDIO_RESAMPLER_OPT_STOP_ATTENUATION", "GstAudioResampler.stop-attenutation", ), ( "GST_AUDIO_RESAMPLER_OPT_TRANSITION_BANDWIDTH", "GstAudioResampler.transition-bandwidth", ), ("GST_AUDIO_RESAMPLER_QUALITY_DEFAULT", "4"), ("GST_AUDIO_RESAMPLER_QUALITY_MAX", "10"), ("GST_AUDIO_RESAMPLER_QUALITY_MIN", "0"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3", "7"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW", "2"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DSD", "15"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS", "9"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3", "8"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC", "14"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM", "5"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958", "6"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM", "3"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG", "4"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC", "10"), ( "(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW", "12", ), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC", "11"), ( "(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW", "13", ), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW", "1"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW", "0"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_ERROR", "3"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_PAUSED", "1"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_STARTED", "2"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_STOPPED", "0"), ( "GST_DSD_FORMATS_ALL", "{ DSDU32BE, DSDU16BE, DSDU8, DSDU32LE, DSDU16LE }", ), ("(gint) GST_DSD_FORMAT_U16", "2"), ("(gint) GST_DSD_FORMAT_U16BE", "3"), ("(gint) GST_DSD_FORMAT_U16LE", "2"), ("(gint) GST_DSD_FORMAT_U32", "4"), ("(gint) GST_DSD_FORMAT_U32BE", "5"), ("(gint) GST_DSD_FORMAT_U32LE", "4"), ("(gint) GST_DSD_FORMAT_U8", "1"), ("(gint) GST_DSD_FORMAT_UNKNOWN", "0"), ("GST_DSD_MEDIA_TYPE", "audio/x-dsd"), ("GST_DSD_SILENCE_PATTERN_BYTE", "105"), ("GST_META_TAG_AUDIO_CHANNELS_STR", "channels"), ("GST_META_TAG_AUDIO_RATE_STR", "rate"), ("GST_META_TAG_AUDIO_STR", "audio"), ("GST_META_TAG_DSD_PLANE_OFFSETS_STR", "dsdplaneoffsets"), ("(gint) GST_NUM_DSD_FORMATS", "6"), ("(gint) GST_STREAM_VOLUME_FORMAT_CUBIC", "1"), ("(gint) GST_STREAM_VOLUME_FORMAT_DB", "2"), ("(gint) GST_STREAM_VOLUME_FORMAT_LINEAR", "0"), ];