moonbit-community/moon_cpal/wasapi does not have a README file

    Device

    pub struct Device {
    id : String
    } derive(Eq,
    Debug
    )

    impl Show for Device

    Device::build_loopback_input_stream

    Build a loopback capture stream (Windows-only).

    This captures audio from the default render (output) endpoint using WASAPI loopback mode. It is primarily used by CI smoke tests to validate the input pipeline when no capture devices exist on the machine.

    Device::equal

    fn Device::equal(Device, Device) -> Bool

    Device::name

    fn Device::name(_self : Device) -> String

    Device::not_equal

    fn Device::not_equal(x : Device, y : Device) -> Bool

    Device::output

    fn Device::output(self : Device, logger : &Logger) -> Unit

    Device::supported_input_configs

    Device::supported_output_configs

    Device::supports_input

    fn Device::supports_input(_self : Device) -> Bool

    Device::supports_output

    fn Device::supports_output(_self : Device) -> Bool

    Device::to_repr

    Device::to_string

    fn Device::to_string(self : Device) -> String

    Host

    pub struct Host {
    _unit : Unit
    } derive(Eq,
    Debug
    )

    impl Show for Host

    Host::default_input_device

    fn Host::default_input_device(_self : Host) -> Device?

    Host::default_output_device

    fn Host::default_output_device(_self : Host) -> Device?

    Host::devices

    fn Host::devices(_self : Host) -> Array[Device]

    Host::equal

    fn Host::equal(Host, Host) -> Bool

    Host::is_available

    fn Host::is_available(_self : Host) -> Bool

    Host::not_equal

    fn Host::not_equal(x : Host, y : Host) -> Bool

    Host::output

    fn Host::output(self : Host, logger : &Logger) -> Unit

    Host::to_repr

    Host::to_string

    fn Host::to_string(self : Host) -> String

    Stream

    pub struct Stream {
    kind : StreamKind
    handle : UInt64
    owner : StreamOwner
    }

    impl Eq for Stream
    impl Show for Stream

    Stream::close

    fn Stream::close(self : Stream) -> Unit

    Stream::equal

    fn Stream::equal(self : Stream, other : Stream) -> Bool

    Stream::not_equal

    fn Stream::not_equal(x : Stream, y : Stream) -> Bool

    Stream::output

    fn Stream::output(self : Stream, logger : &Logger) -> Unit

    Stream::to_repr

    Stream::to_string

    fn Stream::to_string(self : Stream) -> String

    StreamKind

    pub enum StreamKind {
    Output
    Input
    } derive(Eq,
    Debug
    )

    impl Show for StreamKind

    StreamKind::equal

    fn StreamKind::equal(StreamKind, StreamKind) -> Bool

    StreamKind::not_equal

    fn StreamKind::not_equal(x : StreamKind, y : StreamKind) -> Bool

    StreamKind::output

    fn StreamKind::output(self : StreamKind, logger : &Logger) -> Unit

    StreamKind::to_string

    fn StreamKind::to_string(self : StreamKind) -> String

    StreamOwner

    type StreamOwner

    data_flow_tag

    fn data_flow_tag(id : String) -> Int?

    default_config_ex_u32

    fn default_config_ex_u32(id : String, is_input : Bool) -> (UInt, UInt, UInt, UInt, UInt)?

    default_config_u32

    fn default_config_u32(id : String, is_input : Bool) -> (UInt, UInt, UInt)?

    default_device_id_utf8

    fn default_device_id_utf8(is_input : Bool) -> String?

    default_host

    fn default_host() -> Host

    device_form_factor_u32

    fn device_form_factor_u32(id : String) -> UInt?

    device_name_utf8

    fn device_name_utf8(id : String) -> String?

    device_property_utf8

    fn device_property_utf8(id : String, prop_tag : Int) -> String?

    devices_utf8

    fn devices_utf8() -> Bytes

    supported_configs_u32

    fn supported_configs_u32(id : String, is_input : Bool) -> (Int, FixedArray[UInt])?