From 662b51dee35599bdd82d0d6320150171bcc31a92 Mon Sep 17 00:00:00 2001 From: Yury Date: Fri, 29 Nov 2024 19:58:48 +0300 Subject: [PATCH] tune av api --- cidre/src/av/audio.rs | 4 ++-- cidre/src/av/audio/types.rs | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cidre/src/av/audio.rs b/cidre/src/av/audio.rs index 99904f29..ea0d41db 100644 --- a/cidre/src/av/audio.rs +++ b/cidre/src/av/audio.rs @@ -16,8 +16,8 @@ pub use types::NodeBus; pub use types::NodeCh; pub use types::PacketCount; pub use types::Point3d; -pub use types::Vector3d; -pub use types::Vector3dOrientation; +pub use types::Vec3d; +pub use types::Vec3dOrientation; mod node; pub use node::Node; diff --git a/cidre/src/av/audio/types.rs b/cidre/src/av/audio/types.rs index 6024fcb6..1fbfdfdf 100644 --- a/cidre/src/av/audio/types.rs +++ b/cidre/src/av/audio/types.rs @@ -28,13 +28,15 @@ pub struct Point3d { pub z: f32, } -pub type Vector3d = Point3d; +#[doc(alias = "AVAudio3DVector")] +pub type Vec3d = Point3d; +#[doc(alias = "AVAudio3DVectorOrientation")] #[derive(Copy, Clone, Debug, PartialEq)] #[repr(C)] -pub struct Vector3dOrientation { - pub forward: Vector3d, - pub up: Vector3d, +pub struct Vec3dOrientation { + pub forward: Vec3d, + pub up: Vec3d, } #[derive(Copy, Clone, Debug, PartialEq)]