mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-23 01:51:06 +00:00
gstreamer-audio: Add the missing constants for all the audio formats
Include not target_endian related to improve developer experience.
This commit is contained in:
parent
1f7bd78bb2
commit
ead607ab8e
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ impl fmt::Display for ::AudioFormat {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const AUDIO_FORMAT_UNKNOWN: ::AudioFormat = ::AudioFormat::Unknown;
|
||||||
|
pub const AUDIO_FORMAT_ENCODED: ::AudioFormat = ::AudioFormat::Encoded;
|
||||||
|
pub const AUDIO_FORMAT_S8: ::AudioFormat = ::AudioFormat::S8;
|
||||||
|
pub const AUDIO_FORMAT_U8: ::AudioFormat = ::AudioFormat::U8;
|
||||||
|
|
||||||
#[cfg(target_endian = "big")]
|
#[cfg(target_endian = "big")]
|
||||||
pub const AUDIO_FORMAT_S16: ::AudioFormat = ::AudioFormat::S16be;
|
pub const AUDIO_FORMAT_S16: ::AudioFormat = ::AudioFormat::S16be;
|
||||||
#[cfg(target_endian = "big")]
|
#[cfg(target_endian = "big")]
|
||||||
|
|
Loading…
Reference in a new issue