nice-plug-au2 0.1.1

Audio Unit (AU2) support for nice-plug
Documentation
#![cfg_attr(target_os = "macos", allow(non_upper_case_globals))]

#[cfg(target_os = "macos")]
pub mod audio_setup;
#[cfg(target_os = "macos")]
mod bridge;
#[cfg(target_os = "macos")]
pub mod bundle;
#[cfg(target_os = "macos")]
pub mod config;
#[cfg(target_os = "macos")]
pub mod error;
#[cfg(target_os = "macos")]
pub mod factory;
#[cfg(target_os = "macos")]
pub mod instance;
#[cfg(target_os = "macos")]
pub mod render;
#[cfg(target_os = "macos")]
mod wrapper;
#[cfg(target_os = "macos")]
pub use wrapper::*;

#[cfg(not(target_os = "macos"))]
#[derive(Debug, Clone, Copy)]
pub enum Au2Category {
    Effect,
    MusicEffect,
    Generator,
    MidiEffect,
}

#[cfg(not(target_os = "macos"))]
pub trait Au2Plugin: nice_plug_core::plugin::Plugin + 'static {
    const AU2_CATEGORY: Au2Category;
    const AU2_MANUFACTURER: [u8; 4];
    const AU2_SUBTYPE: [u8; 4];
    const AU2_NAME: &'static str = Self::NAME;
}

#[cfg(not(target_os = "macos"))]
#[macro_export]
macro_rules! nice_export_au2 {
    ($plugin_ty:ty) => {};
}