#![cfg_attr(docsrs, doc(cfg(feature = "cpal")))]
mod error;
use cpal::{Device, StreamConfig};
pub use error::*;
#[derive(Clone, Default)]
pub struct CpalBackendSettings {
pub device: Option<Device>,
pub config: Option<StreamConfig>,
}
#[cfg(target_arch = "wasm32")]
mod wasm;
#[cfg(target_arch = "wasm32")]
pub use wasm::CpalBackend;
#[cfg(not(target_arch = "wasm32"))]
mod desktop;
#[cfg(not(target_arch = "wasm32"))]
pub use desktop::CpalBackend;