Skip to content

cpal 0.12.0

Choose a tag to compare

@roderickvd roderickvd released this 11 Dec 16:52
· 859 commits to master since this release
v0.12.0
62ba9a9

Added

  • build_input/output_stream_raw methods allowing for dynamically handling sample format type.
  • InputCallbackInfo and OutputCallbackInfo types and update expected user data callback function signature to provide these.
  • DragonFly BSD: Platform support.

Changed

  • Large refactor removing the blocking EventLoop API.
  • Rename many Format types to StreamConfig:
  • Format type's data_type field renamed to sample_format.
  • Shape -> StreamConfig - The configuration input required to build a stream.
  • Format -> SupportedStreamConfig - Describes a single supported stream configuration.
  • SupportedFormat -> SupportedStreamConfigRange - Describes a range of supported configurations.
  • Device::default_input/output_format -> Device::default_input/output_config.
  • Device::supported_input/output_formats -> Device::supported_input/output_configs.
  • Device::SupportedInput/OutputFormats -> Device::SupportedInput/OutputConfigs.
  • SupportedFormatsError -> SupportedStreamConfigsError.
  • DefaultFormatError -> DefaultStreamConfigError.
  • BuildStreamError::FormatNotSupported -> BuildStreamError::StreamConfigNotSupported.
  • WASAPI: Address deprecated use of mem::uninitialized.

Removed

  • UnknownTypeBuffer in favour of specifying sample type.