Skip to content

Commit

Permalink
tune av api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 29, 2024
1 parent 179c012 commit 662b51d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cidre/src/av/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions cidre/src/av/audio/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 662b51d

Please # to comment.