Please see the CHANGELOG diff below for an overview of changes included in this release. You can find the full code diff [here](https://github.com/RustAudio/cpal/compare/391b32f5b2704141506eb4fcb827b8de76e77d54...master). Thanks to all who have contributed! CPAL has come a long way thanks to the combined effort of many different people!
3.8 KiB
3.8 KiB
Unreleased
Version 0.11.0 (2019-12-11)
- Fix some underruns that could occur in ALSA.
- Add name to
HostId. - Use
snd_pcm_hw_params_set_buffer_time_nearrather thanset_buffer_time_maxin ALSA backend. - Remove many uses of
std::mem::uninitialized. - Fix WASAPI capture logic.
- Panic on stream ID overflow rather than returning an error.
- Use
ringbuffercrate in feedback example. - Move errors into a separate module.
- Switch from
failuretothiserrorfor error handling. - Add
winbasewinapi feature to solve windows compile error issues. - Lots of CI improvements.
Version 0.10.0 (2019-07-05)
- core-foundation-sys and coreaudio-rs version bumps.
- Add an ASIO host, available under Windows.
- Introduce a new Host API, adding support for alternative audio APIs.
- Remove sleep loop on macOS in favour of using a
Condvar. - Allow users to handle stream callback errors with a new
StreamEventtype. - Overhaul error handling throughout the crate.
- Remove unnecessary Mutex from ALSA and WASAPI backends in favour of channels.
- Remove
panic!from OutputBuffer Deref impl as it is no longer necessary.
Version 0.9.0 (2019-06-06)
- Better buffer handling
- Fix logic error in frame/sample size
- Added error handling for unknown ALSA device errors
- Fix resuming a paused stream on Windows (wasapi).
- Implement
default_output_formatfor emscripten backend.
Version 0.8.1 (2018-03-18)
- Fix the handling of non-default sample rates for coreaudio input streams.
Version 0.8.0 (2018-02-15)
- Add
record_wav.rsexample. Records 3 seconds to$CARGO_MANIFEST_DIR/recorded.wavusing default input device. - Update
enumerate.rsexample to display default input/output devices and formats. - Add input stream support to coreaudio, alsa and windows backends.
- Introduce
StreamDatatype for handling either input or output streams inEventLoop::runcallback. - Add
Device::supported_{input/output}_formatsmethods. - Add
Device::default_{input/output}_formatmethods. - Add
default_{input/output}_devicefunctions. - Replace usage of
VoicewithStreamthroughout the crate. - Remove
Endpointin favour ofDevicefor supporting both input and output streams.
Version 0.7.0 (2018-02-04)
- Rename
ChannelsCounttoChannelCount. - Rename
SamplesRatetoSampleRate. - Rename the
min_samples_ratefield ofSupportedFormattomin_sample_rate - Rename the
with_max_samples_rate()method ofSupportedFormattowith_max_sample_rate() - Rename the
samples_ratefield ofFormattosample_rate - Changed the type of the
channelsfield of theSupportedFormatstruct fromVec<ChannelPosition>toChannelCount(an alias tou16) - Remove unused ChannelPosition API.
- Implement
EndpointandFormatEnumeration for macos. - Implement format handling for macos
build_voicemethod.
Version 0.6.0 (2017-12-11)
- Changed the emscripten backend to consume less CPU.
- Added improvements to the crate documentation.
- Implement
pauseandplayfor ALSA backend. - Reduced the number of allocations in the CoreAudio backend.
- Fixes for macos build (#186, #189).
Version 0.5.1 (2017-10-21)
- Added
Sample::to_i16(),Sample::to_u16()andSample::from.
Version 0.5.0 (2017-10-21)
- Removed the dependency on the
futureslibrary. - Removed the
VoiceandSamplesStreamtypes. - Added
EventLoop::build_voice,EventLoop::destroy_voice,EventLoop::play, andEventLoop::pausethat can be used to create, destroy, play and pause voices. - Added a
VoiceIdstruct that is now used to identify a voice owned by anEventLoop. - Changed
EventLoop::run()to take a callback that is called whenever a voice requires sound data. - Changed
supported_formats()to produce a list ofSupportedFormatinstead ofFormat. ASupportedFormatmust then be turned into aFormatin order to build a voice.