var searchIndex = {}; searchIndex["sample"] = {"doc":"A crate of fundamentals for audio PCM DSP.","items":[[0,"slice","sample","This module provides various helper functions for performing operations on slices of frames.",null,null],[5,"to_frame_slice","sample::slice","Converts the given slice into a slice of `Frame`s.",null,{"inputs":[{"name":"t"}],"output":{"name":"option"}}],[5,"to_frame_slice_mut","","Converts the given mutable slice into a mutable slice of `Frame`s.",null,{"inputs":[{"name":"t"}],"output":{"name":"option"}}],[5,"to_sample_slice","","Converts the given slice into a slice of `Sample`s.",null,null],[5,"to_sample_slice_mut","","Converts the given mutable slice of `Frame`s into a mutable slice of `Sample`s.",null,null],[5,"from_sample_slice","","Converts the given slice of `Sample`s into some slice `T`.",null,null],[5,"from_sample_slice_mut","","Converts the given mutable slice of `Sample`s into some mutable slice `T`.",null,null],[5,"from_frame_slice","","Converts the given slice of `Frame`s into some slice `T`.",null,null],[5,"from_frame_slice_mut","","Converts the given slice of mutable `Frame`s into some mutable slice `T`.",null,null],[5,"map_in_place","","Mutate every element in the slice with the given function.",null,null],[5,"equilibrium","","Sets the slice of frames at the associated `Sample`'s equilibrium value.",null,null],[5,"zip_map_in_place","","Mutate every frame in slice `a` while reading from each frame in slice `b` in lock-step using\nthe given function.",null,null],[5,"write","","Writes every sample in slice `b` to slice `a`.",null,null],[5,"add_in_place","","Adds every sample in slice `b` to every sample in slice `a` respectively.",null,null],[5,"add_in_place_with_amp_per_channel","","Scale the amplitude of each frame in `b` by `amp_per_channel` before summing it onto `a`.",null,null],[0,"conv","sample","Pure functions and traits for converting between i8, i16, I24, i32, I48, i64, u8, u16, U24,\nu32, U48, u64, f32 and f64.",null,null],[0,"i8","sample::conv","",null,null],[5,"to_i16","sample::conv::i8","",null,{"inputs":[{"name":"i8"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i8"}],"output":{"name":"f64"}}],[0,"i16","sample::conv","",null,null],[5,"to_i8","sample::conv::i16","",null,{"inputs":[{"name":"i16"}],"output":{"name":"i8"}}],[5,"to_i24","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i16"}],"output":{"name":"f64"}}],[0,"i24","sample::conv","",null,null],[5,"to_i8","sample::conv::i24","",null,{"inputs":[{"name":"i24"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"i16"}}],[5,"to_i32","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i24"}],"output":{"name":"f64"}}],[0,"i32","sample::conv","",null,null],[5,"to_i8","sample::conv::i32","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i24"}}],[5,"to_i48","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"f64"}}],[0,"i48","sample::conv","",null,null],[5,"to_i8","sample::conv::i48","",null,{"inputs":[{"name":"i48"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"i32"}}],[5,"to_i64","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i48"}],"output":{"name":"f64"}}],[0,"i64","sample::conv","",null,null],[5,"to_i8","sample::conv::i64","",null,{"inputs":[{"name":"i64"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"i48"}}],[5,"to_u8","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"i64"}],"output":{"name":"f64"}}],[0,"u8","sample::conv","",null,null],[5,"to_i8","sample::conv::u8","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"i64"}}],[5,"to_u16","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"f64"}}],[0,"u16","sample::conv","",null,null],[5,"to_i8","sample::conv::u16","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"u8"}}],[5,"to_u24","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u16"}],"output":{"name":"f64"}}],[0,"u24","sample::conv","",null,null],[5,"to_i8","sample::conv::u24","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"u16"}}],[5,"to_u32","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u24"}],"output":{"name":"f64"}}],[0,"u32","sample::conv","",null,null],[5,"to_i8","sample::conv::u32","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"u24"}}],[5,"to_u48","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u32"}],"output":{"name":"f64"}}],[0,"u48","sample::conv","",null,null],[5,"to_i8","sample::conv::u48","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"u32"}}],[5,"to_u64","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u48"}],"output":{"name":"f64"}}],[0,"u64","sample::conv","",null,null],[5,"to_i8","sample::conv::u64","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"u48"}}],[5,"to_f32","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"f32"}}],[5,"to_f64","","",null,{"inputs":[{"name":"u64"}],"output":{"name":"f64"}}],[0,"f32","sample::conv","",null,null],[5,"to_i8","sample::conv::f32","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"u64"}}],[5,"to_f64","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"f64"}}],[0,"f64","sample::conv","",null,null],[5,"to_i8","sample::conv::f64","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i8"}}],[5,"to_i16","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i16"}}],[5,"to_i24","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i24"}}],[5,"to_i32","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i32"}}],[5,"to_i48","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i48"}}],[5,"to_i64","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"i64"}}],[5,"to_u8","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u8"}}],[5,"to_u16","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u16"}}],[5,"to_u24","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u24"}}],[5,"to_u32","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u32"}}],[5,"to_u48","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u48"}}],[5,"to_u64","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"u64"}}],[5,"to_f32","","",null,{"inputs":[{"name":"f64"}],"output":{"name":"f32"}}],[8,"FromSample","sample::conv","Similar to the std `From` trait, but specifically for converting between sample types.",null,null],[10,"from_sample_","","",0,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[8,"ToSample","","Similar to the std `Into` trait, but specifically for converting between sample types.",null,null],[10,"to_sample_","","",1,null],[8,"Duplex","","Sample types which may be converted to and from some type `S`.",null,null],[8,"FromSampleSlice","","For converting from a slice of `Sample`s to a slice of `Frame`s.",null,null],[10,"from_sample_slice","","",2,null],[8,"FromSampleSliceMut","","For converting from a mutable slice of `Sample`s to a mutable slice of `Frame`s.",null,null],[10,"from_sample_slice_mut","","",3,null],[8,"FromFrameSlice","","For converting from a slice of `Frame`s to a slice of `Sample`s.",null,null],[10,"from_frame_slice","","",4,null],[8,"FromFrameSliceMut","","For converting from a slice of `Frame`s to a slice of `Sample`s.",null,null],[10,"from_frame_slice_mut","","",5,null],[8,"ToSampleSlice","","For converting from a slice of `Frame`s to a slice of `Sample`s.",null,null],[10,"to_sample_slice","","",6,null],[8,"ToSampleSliceMut","","For converting from a mutable slice of `Frame`s to a mutable slice of `Sample`s.",null,null],[10,"to_sample_slice_mut","","",7,null],[8,"ToFrameSlice","","For converting from a slice of `Sample`s to a slice of `Frame`s.",null,null],[10,"to_frame_slice","","",8,null],[8,"ToFrameSliceMut","","For converting from a mutable slice of `Sample`s to a mutable slice of `Frame`s.",null,null],[10,"to_frame_slice_mut","","",9,null],[8,"DuplexSampleSlice","","",null,null],[8,"DuplexFrameSlice","","",null,null],[8,"DuplexSlice","","",null,null],[8,"DuplexSampleSliceMut","","",null,null],[8,"DuplexFrameSliceMut","","",null,null],[8,"DuplexSliceMut","","",null,null],[0,"frame","sample","Use the [**Frame**](./trait.Frame.html) trait to remain generic over the number of channels at\na single discrete moment in time.",null,null],[3,"Channels","sample::frame","An iterator that yields the sample for each channel in the frame by value.",null,null],[3,"N1","","A typified version of a number of channels.",null,null],[3,"N2","","A typified version of a number of channels.",null,null],[3,"N3","","A typified version of a number of channels.",null,null],[3,"N4","","A typified version of a number of channels.",null,null],[3,"N5","","A typified version of a number of channels.",null,null],[3,"N6","","A typified version of a number of channels.",null,null],[3,"N7","","A typified version of a number of channels.",null,null],[3,"N8","","A typified version of a number of channels.",null,null],[3,"N9","","A typified version of a number of channels.",null,null],[3,"N10","","A typified version of a number of channels.",null,null],[3,"N11","","A typified version of a number of channels.",null,null],[3,"N12","","A typified version of a number of channels.",null,null],[3,"N13","","A typified version of a number of channels.",null,null],[3,"N14","","A typified version of a number of channels.",null,null],[3,"N15","","A typified version of a number of channels.",null,null],[3,"N16","","A typified version of a number of channels.",null,null],[3,"N17","","A typified version of a number of channels.",null,null],[3,"N18","","A typified version of a number of channels.",null,null],[3,"N19","","A typified version of a number of channels.",null,null],[3,"N20","","A typified version of a number of channels.",null,null],[3,"N21","","A typified version of a number of channels.",null,null],[3,"N22","","A typified version of a number of channels.",null,null],[3,"N23","","A typified version of a number of channels.",null,null],[3,"N24","","A typified version of a number of channels.",null,null],[3,"N25","","A typified version of a number of channels.",null,null],[3,"N26","","A typified version of a number of channels.",null,null],[3,"N27","","A typified version of a number of channels.",null,null],[3,"N28","","A typified version of a number of channels.",null,null],[3,"N29","","A typified version of a number of channels.",null,null],[3,"N30","","A typified version of a number of channels.",null,null],[3,"N31","","A typified version of a number of channels.",null,null],[3,"N32","","A typified version of a number of channels.",null,null],[6,"Mono","","",null,null],[6,"Stereo","","",null,null],[8,"Frame","","Represents one sample from each channel at a single discrete instance in time within a\nPCM signal.",null,null],[16,"Sample","","The type of PCM sample stored at each channel within the frame.",10,null],[16,"NumChannels","","A typified version of a number of channels in the `Frame`, used for safely mapping frames\nof the same length to other `Frame`s, perhaps with a different `Sample` associated type.",10,null],[16,"Channels","","An iterator yielding the sample in each channel, starting from left (channel 0) and ending\nat the right (channel NumChannels-1).",10,null],[10,"equilibrium","","The equilibrium value for the wave that this `Sample` type represents. This is normally the\nvalue that is equal distance from both the min and max ranges of the sample.",10,{"inputs":[],"output":{"name":"self"}}],[10,"from_fn","","Create a new `Frame` where the `Sample` for each channel is produced by the given function.",10,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[10,"from_samples","","Create a new `Frame` from a borrowed `Iterator` yielding samples for each channel.",10,{"inputs":[{"name":"i"}],"output":{"name":"option"}}],[10,"n_channels","","The total number of channels (and in turn samples) stored within the frame.",10,{"inputs":[],"output":{"name":"usize"}}],[10,"channels","","Converts the frame into an iterator yielding the sample for each channel in the frame.",10,null],[10,"channel","","Yields a reference to the `Sample` of the channel at the given index if there is one.",10,null],[10,"channel_unchecked","","Returns a pointer to the sample of the channel at the given index, without doing bounds\nchecking.",10,null],[10,"map","","Applies the given function to each sample in the `Frame` in channel order and returns the\nresult as a new `Frame`.",10,null],[10,"zip_map","","Calls the given function with the pair of elements at every index and returns the\nresulting Frame.",10,null],[11,"offset_amp","","Offsets the amplitude of every channel in the frame by the given `offset` and yields the\nresulting frame.",10,null],[11,"scale_amp","","Multiplies each `Sample` in the `Frame` by the given amplitude and returns the resulting\n`Frame`.",10,null],[11,"add_amp","","Sums each channel in `other` with each channel in `self` and returns the resulting `Frame`.",10,null],[11,"mul_amp","","Multiplies `other` with `self` and returns the resulting `Frame`.",10,null],[8,"NumChannels","","Restricts the types that may be used as the `Frame::NumChannels` associated type.",null,null],[11,"clone","","",11,null],[11,"next","","",11,null],[0,"signal","sample","Use the [**Signal** trait](./trait.Signal.html) for working with **Iterator**s that yield\n**Frame**s. To complement the **Iterator** trait, **Signal** provides methods for adding,\nscaling, offsetting, multiplying, clipping and generating frame iterators and more.",null,null],[3,"Equilibrium","sample::signal","An iterator that endlessly yields `Frame`s of type `F` at equilibrium.",null,null],[3,"Gen","","A signal that generates frames using the given function.",null,null],[3,"GenMut","","A signal that generates frames using the given function which may mutate some state.",null,null],[3,"FromSamples","","An iterator that converts an iterator of `Sample`s to an iterator of `Frame`s.",null,null],[3,"AddAmp","","An iterator that yields the sum of the frames yielded by both `other` and `self` in lock-step.",null,null],[3,"MulAmp","","An iterator that yields the product of the frames yielded by both `other` and `self` in\nlock-step.",null,null],[3,"OffsetAmp","","Provides an iterator that offsets the amplitude of every channel in each frame of the\nsignal by some sample value and yields the resulting frames.",null,null],[3,"ScaleAmp","","An `Iterator` that scales the amplitude of the sample of each channel in every `Frame` yielded\nby `self` by the given amplitude.",null,null],[3,"OffsetAmpPerChannel","","An `Iterator` that scales the amplitude of every `Frame` in `self` by the respective amplitudes\nin each channel of the given `amp` `Frame`.",null,null],[3,"ScaleAmpPerChannel","","An `Iterator` that scales the amplitude of every `Frame` in `self` by the respective amplitudes\nin each channel of the given `amp` `Frame`.",null,null],[3,"MulHz","","Multiplies the rate at which frames of `self` are yielded by the given `signal`.",null,null],[3,"Delay","","Delays the `signal` by the given number of frames.",null,null],[3,"ToSamples","","Converts a `Signal` to an `Iterator` yielding `Sample`s of the signal.",null,null],[3,"ClipAmp","","Clips samples in each frame yielded by `signal` to the given threshhold amplitude.",null,null],[5,"equilibrium","","Provides an iterator that endlessly yields `Frame`s of type `F` at equilibrium.",null,{"inputs":[],"output":{"name":"equilibrium"}}],[5,"gen","","A signal that generates frames using the given function.",null,{"inputs":[{"name":"g"}],"output":{"name":"gen"}}],[5,"gen_mut","","A signal that generates frames using the given function which may mutate some state.",null,{"inputs":[{"name":"g"}],"output":{"name":"genmut"}}],[5,"from_samples","","An iterator that converts the given `Iterator` yielding `Sample`s to a `Signal` yielding frames\nof type `F`.",null,{"inputs":[{"name":"i"}],"output":{"name":"fromsamples"}}],[8,"Signal","","A trait that allows us to treat `Iterator`s that yield `Frame`s as a multi-channel PCM signal.",null,null],[11,"add_amp","","Provides an iterator that yields the sum of the frames yielded by both `other` and `self`\nin lock-step.",12,null],[11,"mul_amp","","Provides an iterator that yields the product of the frames yielded by both `other` and\n`self` in lock-step.",12,null],[11,"offset_amp","","Provides an iterator that offsets the amplitude of every channel in each frame of the\nsignal by some sample value and yields the resulting frames.",12,null],[11,"scale_amp","","Produces an `Iterator` that scales the amplitude of the sample of each channel in every\n`Frame` yielded by `self` by the given amplitude.",12,null],[11,"offset_amp_per_channel","","Produces an `Iterator` that offsets the amplitude of every `Frame` in `self` by the\nrespective amplitudes in each channel of the given `amp_frame`.",12,null],[11,"scale_amp_per_channel","","Produces an `Iterator` that scales the amplitude of every `Frame` in `self` by the\nrespective amplitudes in each channel of the given `amp_frame`.",12,null],[11,"mul_hz","","Multiplies the rate at which frames of `self` are yielded by the given `signal`.",12,null],[11,"from_hz_to_hz","","Converts the rate at which frames of the `Signal` are yielded using interpolation.",12,null],[11,"scale_hz","","Multiplies the rate at which frames of the `Signal` are yielded by the given value.",12,null],[11,"delay","","Delays the `Signal` by the given number of frames.",12,null],[11,"to_samples","","Converts a `Iterator` yielding `Frame`s into an `Iterator` yielding `Sample`s.",12,null],[11,"clip_amp","","Clips the amplitude of each channel in each `Frame` yielded by `self` to the given\nthreshold amplitude.",12,null],[11,"clone","","",13,null],[11,"clone","","",14,null],[11,"clone","","",15,null],[11,"clone","","",16,null],[11,"clone","","",17,null],[11,"clone","","",18,null],[11,"clone","","",19,null],[11,"clone","","",20,null],[11,"clone","","",21,null],[11,"clone","","",22,null],[11,"clone","","",23,null],[11,"clone","","",24,null],[11,"clone","","",25,null],[11,"next","","",13,null],[11,"next_back","","",13,null],[11,"next","","",14,null],[11,"next","","",15,null],[11,"next","","",16,null],[11,"next","","",17,null],[11,"size_hint","","",17,null],[11,"len","","",17,null],[11,"next","","",18,null],[11,"size_hint","","",18,null],[11,"len","","",18,null],[11,"next","","",20,null],[11,"size_hint","","",20,null],[11,"len","","",20,null],[11,"next","","",22,null],[11,"size_hint","","",22,null],[11,"len","","",22,null],[11,"next","","",19,null],[11,"size_hint","","",19,null],[11,"len","","",19,null],[11,"next","","",21,null],[11,"size_hint","","",21,null],[11,"len","","",21,null],[11,"next","","",23,null],[11,"size_hint","","",23,null],[11,"next","","",24,null],[11,"size_hint","","",24,null],[11,"next","","",26,null],[11,"size_hint","","",26,null],[11,"clone","","",26,null],[11,"next","","",25,null],[0,"rate","sample","The **rate** module provides a [**Converter** type](./struct.Converter.html), for converting\nand interpolating the rate of **Signal**s. This can be useful for both sample rate conversion\nand playback rate multiplication.",null,null],[3,"Converter","sample::rate","An iterator that converts the rate at which frames are yielded from some given frame Iterator\nvia some given ratio.",null,null],[11,"clone","","",27,null],[11,"from_hz_to_hz","","Construct a new `Converter` from the source frames and the source and target sample rates\n(in Hz).",27,{"inputs":[{"name":"i"},{"name":"f64"},{"name":"f64"}],"output":{"name":"self"}}],[11,"scale_hz","","Construct a new `Converter` from the source frames and the amount by which the current\nplayback rate (not sample rate) should be multiplied to reach the new playback rate.",27,{"inputs":[{"name":"i"},{"name":"f64"}],"output":{"name":"self"}}],[11,"set_source_and_target_hz","","Update the `source_to_target_ratio` internally given the source and target hz.",27,null],[11,"set_rate_multiplier","","Update the `source_to_target_ratio` internally given a new rate multiplier.",27,null],[11,"set_source_to_target_ratio","","Update the `source_to_target_ratio`.",27,null],[11,"next_frame","","Yields the next interpolated target frame.",27,null],[11,"next","","",27,null],[11,"size_hint","","",27,null],[0,"types","sample","A collection of custom, non-std **Sample** types.",null,null],[0,"i11","sample::types","",null,null],[3,"I11","sample::types::i11","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",28,{"inputs":[],"output":{"name":"i11"}}],[11,"cmp","","",28,null],[11,"partial_cmp","","",28,null],[11,"lt","","",28,null],[11,"le","","",28,null],[11,"gt","","",28,null],[11,"ge","","",28,null],[11,"eq","","",28,null],[11,"ne","","",28,null],[11,"fmt","","",28,null],[11,"clone","","",28,null],[11,"from","","",28,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",28,{"inputs":[{"name":"i16"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",28,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",28,null],[11,"add","","",28,null],[11,"sub","","",28,null],[11,"mul","","",28,null],[11,"div","","",28,null],[11,"not","","",28,null],[11,"rem","","",28,null],[11,"shl","","",28,null],[11,"shr","","",28,null],[11,"bitand","","",28,null],[11,"bitor","","",28,null],[11,"bitxor","","",28,null],[11,"from","","",28,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from","","",28,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"neg","","",28,null],[0,"u11","sample::types","",null,null],[3,"U11","sample::types::u11","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",29,{"inputs":[],"output":{"name":"u11"}}],[11,"cmp","","",29,null],[11,"partial_cmp","","",29,null],[11,"lt","","",29,null],[11,"le","","",29,null],[11,"gt","","",29,null],[11,"ge","","",29,null],[11,"eq","","",29,null],[11,"ne","","",29,null],[11,"fmt","","",29,null],[11,"clone","","",29,null],[11,"from","","",29,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",29,{"inputs":[{"name":"i16"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",29,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",29,null],[11,"add","","",29,null],[11,"sub","","",29,null],[11,"mul","","",29,null],[11,"div","","",29,null],[11,"not","","",29,null],[11,"rem","","",29,null],[11,"shl","","",29,null],[11,"shr","","",29,null],[11,"bitand","","",29,null],[11,"bitor","","",29,null],[11,"bitxor","","",29,null],[11,"from","","",29,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"neg","","",29,null],[0,"i20","sample::types","",null,null],[3,"I20","sample::types::i20","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",30,{"inputs":[],"output":{"name":"i20"}}],[11,"cmp","","",30,null],[11,"partial_cmp","","",30,null],[11,"lt","","",30,null],[11,"le","","",30,null],[11,"gt","","",30,null],[11,"ge","","",30,null],[11,"eq","","",30,null],[11,"ne","","",30,null],[11,"fmt","","",30,null],[11,"clone","","",30,null],[11,"from","","",30,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",30,{"inputs":[{"name":"i32"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",30,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",30,null],[11,"add","","",30,null],[11,"sub","","",30,null],[11,"mul","","",30,null],[11,"div","","",30,null],[11,"not","","",30,null],[11,"rem","","",30,null],[11,"shl","","",30,null],[11,"shr","","",30,null],[11,"bitand","","",30,null],[11,"bitor","","",30,null],[11,"bitxor","","",30,null],[11,"from","","",30,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from","","",30,{"inputs":[{"name":"i11"}],"output":{"name":"self"}}],[11,"from","","",30,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from","","",30,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",30,{"inputs":[{"name":"u11"}],"output":{"name":"self"}}],[11,"from","","",30,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[0,"u20","sample::types","",null,null],[3,"U20","sample::types::u20","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",31,{"inputs":[],"output":{"name":"u20"}}],[11,"cmp","","",31,null],[11,"partial_cmp","","",31,null],[11,"lt","","",31,null],[11,"le","","",31,null],[11,"gt","","",31,null],[11,"ge","","",31,null],[11,"eq","","",31,null],[11,"ne","","",31,null],[11,"fmt","","",31,null],[11,"clone","","",31,null],[11,"from","","",31,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",31,{"inputs":[{"name":"i32"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",31,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",31,null],[11,"add","","",31,null],[11,"sub","","",31,null],[11,"mul","","",31,null],[11,"div","","",31,null],[11,"not","","",31,null],[11,"rem","","",31,null],[11,"shl","","",31,null],[11,"shr","","",31,null],[11,"bitand","","",31,null],[11,"bitor","","",31,null],[11,"bitxor","","",31,null],[11,"from","","",31,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",31,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[0,"i24","sample::types","",null,null],[3,"I24","sample::types::i24","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",32,{"inputs":[],"output":{"name":"i24"}}],[11,"cmp","","",32,null],[11,"partial_cmp","","",32,null],[11,"lt","","",32,null],[11,"le","","",32,null],[11,"gt","","",32,null],[11,"ge","","",32,null],[11,"eq","","",32,null],[11,"ne","","",32,null],[11,"fmt","","",32,null],[11,"clone","","",32,null],[11,"from","","",32,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",32,{"inputs":[{"name":"i32"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",32,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",32,null],[11,"add","","",32,null],[11,"sub","","",32,null],[11,"mul","","",32,null],[11,"div","","",32,null],[11,"not","","",32,null],[11,"rem","","",32,null],[11,"shl","","",32,null],[11,"shr","","",32,null],[11,"bitand","","",32,null],[11,"bitor","","",32,null],[11,"bitxor","","",32,null],[11,"from","","",32,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from","","",32,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from","","",32,{"inputs":[{"name":"i20"}],"output":{"name":"self"}}],[11,"from","","",32,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",32,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from","","",32,{"inputs":[{"name":"u20"}],"output":{"name":"self"}}],[11,"neg","","",32,null],[0,"u24","sample::types","",null,null],[3,"U24","sample::types::u24","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",33,{"inputs":[],"output":{"name":"u24"}}],[11,"cmp","","",33,null],[11,"partial_cmp","","",33,null],[11,"lt","","",33,null],[11,"le","","",33,null],[11,"gt","","",33,null],[11,"ge","","",33,null],[11,"eq","","",33,null],[11,"ne","","",33,null],[11,"fmt","","",33,null],[11,"clone","","",33,null],[11,"from","","",33,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",33,{"inputs":[{"name":"i32"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",33,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",33,null],[11,"add","","",33,null],[11,"sub","","",33,null],[11,"mul","","",33,null],[11,"div","","",33,null],[11,"not","","",33,null],[11,"rem","","",33,null],[11,"shl","","",33,null],[11,"shr","","",33,null],[11,"bitand","","",33,null],[11,"bitor","","",33,null],[11,"bitxor","","",33,null],[11,"from","","",33,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",33,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from","","",33,{"inputs":[{"name":"u20"}],"output":{"name":"self"}}],[0,"i48","sample::types","",null,null],[3,"I48","sample::types::i48","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",34,{"inputs":[],"output":{"name":"i48"}}],[11,"cmp","","",34,null],[11,"partial_cmp","","",34,null],[11,"lt","","",34,null],[11,"le","","",34,null],[11,"gt","","",34,null],[11,"ge","","",34,null],[11,"eq","","",34,null],[11,"ne","","",34,null],[11,"fmt","","",34,null],[11,"clone","","",34,null],[11,"from","","",34,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",34,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",34,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",34,null],[11,"add","","",34,null],[11,"sub","","",34,null],[11,"mul","","",34,null],[11,"div","","",34,null],[11,"not","","",34,null],[11,"rem","","",34,null],[11,"shl","","",34,null],[11,"shr","","",34,null],[11,"bitand","","",34,null],[11,"bitor","","",34,null],[11,"bitxor","","",34,null],[11,"from","","",34,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"i20"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"i24"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"u20"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"u24"}],"output":{"name":"self"}}],[11,"from","","",34,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[11,"neg","","",34,null],[0,"u48","sample::types","",null,null],[3,"U48","sample::types::u48","",null,null],[17,"MIN","","",null,null],[17,"MAX","","",null,null],[17,"EQUILIBRIUM","","",null,null],[11,"default","","",35,{"inputs":[],"output":{"name":"u48"}}],[11,"cmp","","",35,null],[11,"partial_cmp","","",35,null],[11,"lt","","",35,null],[11,"le","","",35,null],[11,"gt","","",35,null],[11,"ge","","",35,null],[11,"eq","","",35,null],[11,"ne","","",35,null],[11,"fmt","","",35,null],[11,"clone","","",35,null],[11,"from","","",35,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"new","","Construct a new sample if the given value is within range.",35,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"new_unchecked","","Constructs a new sample without checking for overflowing.",35,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"inner","","Return the internal value used to represent the sample type.",35,null],[11,"add","","",35,null],[11,"sub","","",35,null],[11,"mul","","",35,null],[11,"div","","",35,null],[11,"not","","",35,null],[11,"rem","","",35,null],[11,"shl","","",35,null],[11,"shr","","",35,null],[11,"bitand","","",35,null],[11,"bitor","","",35,null],[11,"bitxor","","",35,null],[11,"from","","",35,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from","","",35,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from","","",35,{"inputs":[{"name":"u20"}],"output":{"name":"self"}}],[11,"from","","",35,{"inputs":[{"name":"u24"}],"output":{"name":"self"}}],[11,"from","","",35,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[8,"Sample","sample","A trait for working generically across different **Sample** format types.",null,null],[16,"Signed","","When summing two samples of a signal together, it is necessary for both samples to be\nrepresented in some signed format. This associated `Addition` type represents the format to\nwhich `Self` should be converted for optimal `Addition` performance.",36,null],[16,"Float","","When multiplying two samples of a signal together, it is necessary for both samples to be\nrepresented in some signed, floating-point format. This associated `Multiplication` type\nrepresents the format to which `Self` should be converted for optimal `Multiplication`\nperformance.",36,null],[10,"equilibrium","","The equilibrium value for the wave that this `Sample` type represents. This is normally the\nvalue that is equal distance from both the min and max ranges of the sample.",36,{"inputs":[],"output":{"name":"self"}}],[11,"to_sample","","Convert `self` to any type that implements `FromSample<Self>`.",36,null],[11,"from_sample","","Create a `Self` from any type that implements `ToSample<Self>`.\n# Example",36,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"add_amp","","Adds (or "offsets") the amplitude of the `Sample` by the given signed amplitude.",36,null],[11,"mul_amp","","Multiplies (or "scales") the amplitude of the `Sample` by the given float amplitude.",36,null],[8,"SignedSample","","Integral and floating-point **Sample** format types whose equilibrium is at 0.",null,null],[8,"FloatSample","","Sample format types represented as floating point numbers.",null,null],[11,"equilibrium","sample::types::i24","",32,{"inputs":[],"output":{"name":"self"}}],[11,"equilibrium","sample::types::i48","",34,{"inputs":[],"output":{"name":"self"}}],[11,"equilibrium","sample::types::u24","",33,{"inputs":[],"output":{"name":"self"}}],[11,"equilibrium","sample::types::u48","",35,{"inputs":[],"output":{"name":"self"}}],[11,"from_sample_","sample::types::i24","",32,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"i48"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u24"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u48"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"u64"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"f32"}],"output":{"name":"self"}}],[11,"from_sample_","","",32,{"inputs":[{"name":"f64"}],"output":{"name":"self"}}],[11,"from_sample_","sample::types::i48","",34,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"i24"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u24"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u48"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"u64"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"f32"}],"output":{"name":"self"}}],[11,"from_sample_","","",34,{"inputs":[{"name":"f64"}],"output":{"name":"self"}}],[11,"from_sample_","sample::types::u24","",33,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"i24"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"i48"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"u48"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"u64"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"f32"}],"output":{"name":"self"}}],[11,"from_sample_","","",33,{"inputs":[{"name":"f64"}],"output":{"name":"self"}}],[11,"from_sample_","sample::types::u48","",35,{"inputs":[{"name":"i8"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"i16"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"i24"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"i48"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"u8"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"u16"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"u24"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"u32"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"u64"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"f32"}],"output":{"name":"self"}}],[11,"from_sample_","","",35,{"inputs":[{"name":"f64"}],"output":{"name":"self"}}]],"paths":[[8,"FromSample"],[8,"ToSample"],[8,"FromSampleSlice"],[8,"FromSampleSliceMut"],[8,"FromFrameSlice"],[8,"FromFrameSliceMut"],[8,"ToSampleSlice"],[8,"ToSampleSliceMut"],[8,"ToFrameSlice"],[8,"ToFrameSliceMut"],[8,"Frame"],[3,"Channels"],[8,"Signal"],[3,"Equilibrium"],[3,"Gen"],[3,"GenMut"],[3,"FromSamples"],[3,"AddAmp"],[3,"MulAmp"],[3,"OffsetAmp"],[3,"ScaleAmp"],[3,"OffsetAmpPerChannel"],[3,"ScaleAmpPerChannel"],[3,"MulHz"],[3,"Delay"],[3,"ClipAmp"],[3,"ToSamples"],[3,"Converter"],[3,"I11"],[3,"U11"],[3,"I20"],[3,"U20"],[3,"I24"],[3,"U24"],[3,"I48"],[3,"U48"],[8,"Sample"]]}; initSearch(searchIndex);