Repository navigation
Breaking Changes
-
Type names no longer prefixed with
AudioBlock— all concrete types have been renamed for brevity:Before After AudioBlockInterleavedInterleavedAudioBlockInterleavedViewInterleavedViewAudioBlockInterleavedViewMutInterleavedViewMutAudioBlockPlanarPlanarAudioBlockPlanarViewPlanarViewAudioBlockPlanarViewMutPlanarViewMutAudioBlockSequentialSequentialAudioBlockSequentialViewSequentialViewAudioBlockSequentialViewMutSequentialViewMutAudioBlockMonoMonoAudioBlockMonoViewMonoViewAudioBlockMonoViewMutMonoViewMut -
copy_from_blocknow returnsOption<(u16, usize)>— returnsNoneif the entire block was copied (exact size match), orSome((channels_copied, frames_copied))if a partial copy occurred. -
copy_from_blockno longer callsset_visible— previously,copy_from_blockresized the destination block tomin(src, dst)channels and frames viaset_visible. This call has been removed; the destination block's visible size is now left unchanged. -
copy_mono_to_all_channelsnow returnsOption<usize>— previously returned(). Now returnsNoneif all frames were copied (exact match), orSome(frames_copied)if a partial copy occurred. A newcopy_mono_to_all_channels_exact(panicking) variant has been added. -
for_each_including_non_visible/enumerate_including_non_visiblerenamed — these methods are now calledfor_each_allocatedandenumerate_allocatedrespectively, with improved documentation clarifying when to prefer them overfor_each/enumerate.
New Features
mix_to_mononow returnsOption<usize>— a newmix_to_mono_exact(panicking) variant has been added.copy_channel_to_mono/copy_channel_to_mono_exact— new ops to copy a single channel into a mono buffer.gainmethod — newgain(S)method onAudioBlockOpsMutapplies a gain factor to all samples in the block.DefaultandClonefor all owned types —Interleaved,Planar,Sequential, andMononow implementDefaultandClone.
Other Changes
- Updated
criteriondev-dependency to0.8.2 - Expanded benchmark suite with
block-typesbench - README and docs autogenerated and improved