* Implement `pause` and `play` for ALSA backend This commit also ensures that the Voice is initially paused when returned to remain consistent with the rest of the CPAL backends. Related to #175. * Remove ineffective pause from end of build_voice method * ALSA - Change `is_paused` flag from `AtomicBool` to `bool` * Add pause and play ALSA addition to CHANGELOG
928 B
928 B
Unreleased
- Changed the emscripten backend to consume less CPU.
- Added improvements to the crate documentation.
- Implement
pauseandplayfor ALSA backend.
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.