var searchIndex = {}; searchIndex["sample"] = {"doc":"","items":[[4,"Format","sample","A dynamic representation of common Sample Formats.",null,null],[13,"F32","","32-bit floating point.",0,null],[13,"I32","","32-bit integer.",0,null],[13,"I16","","16-bit integer.",0,null],[13,"I8","","8-bit integer.",0,null],[13,"U32","","32-bit unsigned integer.",0,null],[13,"U16","","16-bit unsigned integer. 0 corresponds to half of ::std::u16::MAX.",0,null],[13,"U8","","8-bit unsigned integer.",0,null],[6,"Wave","","Represents a sample from a Wave between -1.0 and 1.0.",null,null],[6,"Amplitude","","Represents a Wave amplitude between 0.0 and 1.0.",null,null],[8,"Sample","","A trait for working generically across different sample types.",null,null],[10,"from_wave","","Construct a sample from a wave sample between -1. and 1.",1,{"inputs":[{"name":"wave"}],"output":{"name":"self"}}],[10,"to_wave","","Convert to a wave sample between -1. and 1.",1,null],[10,"sample_format","","Return the sample format as a method.",1,null],[11,"format","","Return the format of the sample.",1,{"inputs":[],"output":{"name":"format"}}],[11,"mul_amp","","Multiply by a given amplitude.",1,null],[11,"from_sample","","Construct a sample from an arbitrary Sample type.",1,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"to_sample","","Construct an arbitrary sample type from a sample of this Self type.",1,null],[11,"zero","","A silent sample.",1,{"inputs":[],"output":{"name":"self"}}],[11,"add_buffers","","Sum the working buffer onto the output buffer after multiplying it by volume per channel.",1,null],[11,"zero_buffer","","Zero a given buffer of samples.",1,null],[11,"size_in_bytes","","Return the size in bytes for the Format.",0,null]],"paths":[[4,"Format"],[8,"Sample"]]}; initSearch(searchIndex);