float function ( int arg0 , float arg1 ) { int loc0 = ( int ) arg1 ; int loc1 = loc0 + 1 ; if ( loc1 == bufferSize ) { return channels [ arg0 ] [ loc0 ] ; } float loc2 = arg1 - loc0 ; return channels [ arg0 ] [ loc0 ] + loc2 * ( channels [ arg0 ] [ loc1 ] - channels [ arg0 ] [ loc0 ] ) ; }
returns the interpolated value of a sample in the given channel , at the given offset from the beginning of the buffer , for instance , getsample 0 , 30.5 f will return an interpolated sample value in channel 0 that is between the value at 30 and the value at 31 . concode_field_sep float[][] channels concode_elem_sep int bufferSize concode_field_sep void setBufferSize concode_elem_sep int getChannelCount concode_elem_sep void set concode_elem_sep float[] getChannel concode_elem_sep void setChannelCount concode_elem_sep int getBufferSize concode_elem_sep void setChannel concode_elem_sep void setSample