moonbit-community/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 SupportedStreamConfigsErrorpub struct BackendSpecificError {
description : String
} derive(Eq, Debug)
fn BackendSpecificError::BackendSpecificError(description : String) -> BackendSpecificErrorimpl Show for BackendSpecificErrorimpl Show for BufferSizepub struct Data {
sample_format : SampleFormat
bytes : FixedArray[Byte]
} derive(Eq, Debug)
fn Data::Data(sample_format : SampleFormat, bytes : FixedArray[Byte]) -> Datapub struct DeviceDescription {
name : String
manufacturer : String?
driver : String?
device_type : DeviceType
interface_type : InterfaceType
direction : DeviceDirection
address : String?
extended : Array[String]
} derive(Eq, Debug)
fn DeviceDescription::DeviceDescription(name : String, manufacturer? : String?, driver? : String?, device_type? : DeviceType, interface_type? : InterfaceType, direction? : DeviceDirection, address? : String?, extended? : Array[String]) -> DeviceDescriptionimpl Show for 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)
fn DeviceDescriptionBuilder::DeviceDescriptionBuilder(name : String) -> DeviceDescriptionBuilderimpl 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 DeviceDirectionpub struct InputCallbackInfo {
timestamp : InputStreamTimestamp
} derive(Eq, Debug)
fn InputCallbackInfo::InputCallbackInfo(timestamp : InputStreamTimestamp) -> InputCallbackInfoimpl Show for InputCallbackInfopub struct InputStreamTimestamp {
callback : StreamInstant
capture : StreamInstant
} derive(Eq, Debug)
fn InputStreamTimestamp::InputStreamTimestamp(callback : StreamInstant, capture : StreamInstant) -> InputStreamTimestampimpl Show for InputStreamTimestampfn InputStreamTimestamp::new(callback : StreamInstant, capture : StreamInstant) -> InputStreamTimestamppub struct OutputCallbackInfo {
timestamp : OutputStreamTimestamp
} derive(Eq, Debug)
fn OutputCallbackInfo::OutputCallbackInfo(timestamp : OutputStreamTimestamp) -> OutputCallbackInfoimpl Show for OutputCallbackInfopub struct OutputStreamTimestamp {
callback : StreamInstant
playback : StreamInstant
} derive(Eq, Debug)
fn OutputStreamTimestamp::OutputStreamTimestamp(callback : StreamInstant, playback : StreamInstant) -> OutputStreamTimestampimpl Show for OutputStreamTimestampfn OutputStreamTimestamp::new(callback : StreamInstant, playback : StreamInstant) -> OutputStreamTimestamppub struct StreamConfig {
channels : Int
sample_rate : Int
buffer_size : BufferSize
} derive(Eq, Debug)
fn StreamConfig::StreamConfig(channels : Int, sample_rate : Int, buffer_size : BufferSize) -> StreamConfigpub struct StreamInstant {
secs : Int64
nanos : Int
} derive(Eq, Debug)
fn StreamInstant::StreamInstant(secs : Int64, nanos : Int) -> StreamInstantimpl Show for StreamInstantpub struct SupportedStreamConfig {
buffer_size : SupportedBufferSize
channels : Int
sample_rate : Int
sample_format : SampleFormat
} derive(Eq, Debug)
fn SupportedStreamConfig::SupportedStreamConfig(channels : Int, sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigimpl Show for 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)
fn SupportedStreamConfigRange::SupportedStreamConfigRange(channels : Int, min_sample_rate : Int, max_sample_rate : Int, buffer_size : SupportedBufferSize, sample_format : SampleFormat) -> SupportedStreamConfigRangeimpl Show for 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.