Explicitely ignore native endianness audio formats

We have to handle them separately depending on the current
configuration, and do so. Also fix things up there.
This commit is contained in:
Sebastian Dröge 2017-08-10 10:51:22 +03:00
parent 2b33885c1e
commit 6b11b8b751
6 changed files with 85 additions and 13 deletions

View file

@ -16,7 +16,6 @@ external_libraries = [
generate = [
"GstAudio.AudioFlags",
"GstAudio.AudioFormat",
"GstAudio.AudioFormatFlags",
"GstAudio.AudioLayout",
"GstAudio.AudioPackFlags",
@ -37,3 +36,76 @@ name = "Gst.Caps"
status = "manual"
ref_mode = "ref"
[[object]]
name = "GstAudio.AudioFormat"
status = "generate"
[[object.member]]
name = "s16"
# Platform dependant
ignore = true
[[object.member]]
name = "u16"
# Platform dependant
ignore = true
[[object.member]]
name = "s24_32"
# Platform dependant
ignore = true
[[object.member]]
name = "u24_32"
# Platform dependant
ignore = true
[[object.member]]
name = "s32"
# Platform dependant
ignore = true
[[object.member]]
name = "u32"
# Platform dependant
ignore = true
[[object.member]]
name = "s24"
# Platform dependant
ignore = true
[[object.member]]
name = "u24"
# Platform dependant
ignore = true
[[object.member]]
name = "s20"
# Platform dependant
ignore = true
[[object.member]]
name = "u20"
# Platform dependant
ignore = true
[[object.member]]
name = "s18"
# Platform dependant
ignore = true
[[object.member]]
name = "u18"
# Platform dependant
ignore = true
[[object.member]]
name = "f32"
# Platform dependant
ignore = true
[[object.member]]
name = "f64"
# Platform dependant
ignore = true

View file

@ -90,19 +90,19 @@ pub const AUDIO_FORMAT_U2432: ::AudioFormat = ::AudioFormat::U2432be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_S32: ::AudioFormat = ::AudioFormat::S32be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_U32: ::AudioFormat = ::AudioFormat::S32be;
pub const AUDIO_FORMAT_U32: ::AudioFormat = ::AudioFormat::U32be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_S24: ::AudioFormat = ::AudioFormat::S24be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_U24: ::AudioFormat = ::AudioFormat::S24be;
pub const AUDIO_FORMAT_U24: ::AudioFormat = ::AudioFormat::U24be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_S20: ::AudioFormat = ::AudioFormat::S20be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_U20: ::AudioFormat = ::AudioFormat::S20be;
pub const AUDIO_FORMAT_U20: ::AudioFormat = ::AudioFormat::U20be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_S18: ::AudioFormat = ::AudioFormat::S18be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_U18: ::AudioFormat = ::AudioFormat::S18be;
pub const AUDIO_FORMAT_U18: ::AudioFormat = ::AudioFormat::U18be;
#[cfg(target_endian = "big")]
pub const AUDIO_FORMAT_F32: ::AudioFormat = ::AudioFormat::F32be;
#[cfg(target_endian = "big")]
@ -119,19 +119,19 @@ pub const AUDIO_FORMAT_U2432: ::AudioFormat = ::AudioFormat::U2432le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_S32: ::AudioFormat = ::AudioFormat::S32le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_U32: ::AudioFormat = ::AudioFormat::S32le;
pub const AUDIO_FORMAT_U32: ::AudioFormat = ::AudioFormat::U32le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_S24: ::AudioFormat = ::AudioFormat::S24le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_U24: ::AudioFormat = ::AudioFormat::S24le;
pub const AUDIO_FORMAT_U24: ::AudioFormat = ::AudioFormat::U24le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_S20: ::AudioFormat = ::AudioFormat::S20le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_U20: ::AudioFormat = ::AudioFormat::S20le;
pub const AUDIO_FORMAT_U20: ::AudioFormat = ::AudioFormat::U20le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_S18: ::AudioFormat = ::AudioFormat::S18le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_U18: ::AudioFormat = ::AudioFormat::S18le;
pub const AUDIO_FORMAT_U18: ::AudioFormat = ::AudioFormat::U18le;
#[cfg(target_endian = "little")]
pub const AUDIO_FORMAT_F32: ::AudioFormat = ::AudioFormat::F32le;
#[cfg(target_endian = "little")]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (3294959) from gir-files (???)
// This file was generated by gir (cf27827) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (3294959) from gir-files (???)
// This file was generated by gir (cf27827) from gir-files (???)
// DO NOT EDIT
use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (3294959) from gir-files (???)
// This file was generated by gir (cf27827) from gir-files (???)
// DO NOT EDIT
mod stream_volume;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (3294959) from gir-files (???)
// This file was generated by gir (cf27827) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;