diff --git a/azo-sys/src/lib.rs b/azo-sys/src/lib.rs index 576e3df..422e3f0 100644 --- a/azo-sys/src/lib.rs +++ b/azo-sys/src/lib.rs @@ -139,7 +139,7 @@ impl ResultCode { } } -#[repr(C)] +#[repr(C, packed(4))] #[derive(Debug, Clone, PartialEq)] pub struct TimeCode { pub speed: c_double, @@ -182,7 +182,7 @@ bitflags! { } } -#[repr(C)] +#[repr(C, packed(4))] #[derive(Debug, Default, Clone, PartialEq)] pub struct TimeInfo { pub speed : c_double, @@ -246,7 +246,7 @@ pub type BufferSwitchTimeInfo = direct_process : Bool ) -> *mut Time; -#[repr(C)] +#[repr(C, packed(4))] #[derive(Debug, Clone, Hash)] pub struct Callbacks { pub buffer_switch : BufferSwitch, @@ -359,7 +359,7 @@ pub struct ChannelInfo { pub name : [u8; 32] } -#[repr(C)] +#[repr(C, packed(4))] #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct BufferInfo { pub is_input : Bool, diff --git a/azo-sys/src/utils.rs b/azo-sys/src/utils.rs index f0c430a..95f5ed7 100644 --- a/azo-sys/src/utils.rs +++ b/azo-sys/src/utils.rs @@ -56,6 +56,7 @@ macro_rules! c_enum { } } +#[repr(C)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)] pub struct I64Split { pub hi: u32,