Milky2018/moon_cpal/core does not have a README file
impl FromSample for Bytefn from_sample(x : Float) -> Byteimpl FromSample for Int16fn from_sample(x : Float) -> Int16impl FromSample for UInt16fn from_sample(x : Float) -> UInt16impl FromSample for Floatfn from_sample(x : Float) -> Floatimpl FromSample for Doublefn from_sample(x : Float) -> Doublepub trait Sample {
fn equilibrium() -> Self
fn to_f32(Self) -> Float
fn from_f32(Float) -> Self
}impl SizedSample for Byteimpl SizedSample for Int16impl SizedSample for UInt16impl SizedSample for Floatimpl SizedSample for Doublepub suberror BuildStreamError {
DeviceNotAvailable
DeviceBusy
StreamConfigNotSupported
InvalidArgument
StreamIdOverflow
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for BuildStreamErrorpub suberror DefaultStreamConfigError {
DeviceNotAvailable
DeviceBusy
StreamTypeNotSupported
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for DefaultStreamConfigErrorpub suberror DeviceIdError {
UnsupportedPlatform
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for DeviceIdErrorimpl Show for DeviceNameErrorimpl Show for DevicesErrorpub suberror PauseStreamError {
DeviceNotAvailable
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for PauseStreamErrorpub suberror PlayStreamError {
DeviceNotAvailable
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for PlayStreamErrorpub suberror StreamError {
DeviceNotAvailable
StreamInvalidated
BufferUnderrun
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for StreamErrorpub suberror SupportedStreamConfigsError {
DeviceNotAvailable
DeviceBusy
InvalidArgument
BackendSpecific(BackendSpecificError)
} derive(Eq, Debug)impl Show for SupportedStreamConfigsErrorimpl Show for BackendSpecificErrorimpl Show for BufferSizepub struct DeviceDescription {
name : String
manufacturer : String?
driver : String?
device_type : DeviceType
interface_type : InterfaceType
direction : DeviceDirection
address : String?
extended : Array[String]
} derive(Eq, Debug)impl Show for DeviceDescriptionfn DeviceDescription::DeviceDescription(name : String, manufacturer? : String?, driver? : String?, device_type? : DeviceType, interface_type? : InterfaceType, direction? : DeviceDirection, address? : String?, extended? : Array[String]) -> DeviceDescriptionfn DeviceDescription::new(name : String, manufacturer? : String?, driver? : String?, device_type? : DeviceType, interface_type? : InterfaceType, direction? : DeviceDirection, address? : String?, extended? : Array[String]) -> DeviceDescriptionpub struct DeviceDescriptionBuilder {
name : String
manufacturer : String?
driver : String?
device_type : DeviceType
interface_type : InterfaceType
direction : DeviceDirection
address : String?
extended : Array[String]
} derive(Eq, Debug)impl Show for DeviceDescriptionBuilderfn DeviceDescriptionBuilder::add_extended_line(self : DeviceDescriptionBuilder, line : String) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::address(self : DeviceDescriptionBuilder, address : String) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::device_type(self : DeviceDescriptionBuilder, device_type : DeviceType) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::direction(self : DeviceDescriptionBuilder, direction : DeviceDirection) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::driver(self : DeviceDescriptionBuilder, driver : String) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::extended(self : DeviceDescriptionBuilder, lines : Array[String]) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::interface_type(self : DeviceDescriptionBuilder, interface_type : InterfaceType) -> DeviceDescriptionBuilderfn DeviceDescriptionBuilder::manufacturer(self : DeviceDescriptionBuilder, manufacturer : String) -> DeviceDescriptionBuilderimpl Show for DeviceDirectionimpl Show for InputCallbackInfopub struct InputStreamTimestamp {
callback : StreamInstant
capture : StreamInstant
} derive(Eq, Debug)impl Show for InputStreamTimestampfn InputStreamTimestamp::InputStreamTimestamp(callback : StreamInstant, capture : StreamInstant) -> InputStreamTimestampfn InputStreamTimestamp::new(callback : StreamInstant, capture : StreamInstant) -> InputStreamTimestampimpl Show for OutputCallbackInfopub struct OutputStreamTimestamp {
callback : StreamInstant
playback : StreamInstant
} derive(Eq, Debug)impl Show for OutputStreamTimestampfn OutputStreamTimestamp::OutputStreamTimestamp(callback : StreamInstant, playback : StreamInstant) -> OutputStreamTimestampfn OutputStreamTimestamp::new(callback : StreamInstant, playback : StreamInstant) -> OutputStreamTimestamppub struct StreamConfig {
channels : Int
sample_rate : Int
buffer_size : BufferSize
} derive(Eq, Debug)impl Show for StreamConfigfn StreamConfig::StreamConfig(channels : Int, sample_rate : Int, buffer_size : BufferSize) -> StreamConfigimpl Show for StreamInstantpub struct SupportedStreamConfig {
buffer_size : SupportedBufferSize
channels : Int
sample_rate : Int
sample_format : SampleFormat
} derive(Eq, Debug)impl Show for SupportedStreamConfigfn SupportedStreamConfig::SupportedStreamConfig(channels : Int, sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigfn SupportedStreamConfig::new(channels : Int, sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigpub struct SupportedStreamConfigRange {
buffer_size : SupportedBufferSize
channels : Int
min_sample_rate : Int
max_sample_rate : Int
sample_format : SampleFormat
} derive(Eq, Debug)impl Show for SupportedStreamConfigRangefn SupportedStreamConfigRange::SupportedStreamConfigRange(channels : Int, min_sample_rate : Int, max_sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigRangefn SupportedStreamConfigRange::buffer_size(self : SupportedStreamConfigRange) -> SupportedBufferSizefn SupportedStreamConfigRange::cmp_default_heuristics(self : SupportedStreamConfigRange, other : SupportedStreamConfigRange) -> Intfn SupportedStreamConfigRange::new(channels : Int, min_sample_rate : Int, max_sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigRangefn SupportedStreamConfigRange::try_with_sample_rate(self : SupportedStreamConfigRange, sample_rate : Int) -> SupportedStreamConfig?fn SupportedStreamConfigRange::with_max_sample_rate(self : SupportedStreamConfigRange) -> SupportedStreamConfigfn SupportedStreamConfigRange::with_sample_rate(self : SupportedStreamConfigRange, sample_rate : Int) -> SupportedStreamConfigfn string_to_ascii_bytes(s : String) -> Bytesfn string_to_utf8_bytes(s : String) -> Bytesfn supported_stream_configs_error_backend_specific(description : String) -> SupportedStreamConfigsErrorA MoonBit port (subset) of RustAudio/cpal.