byte [ ] function ( int arg0 , int arg1 , int arg2 ) { byte [ ] loc0 = new byte [ Float . valueOf ( arg2 * ( SAMPLE_RATE / 1000 ) + 1 ) . intValue ( ) ] ; for ( int loc1 = 0 ; loc1 < arg2 * SAMPLE_RATE / 1000 ; loc1 ++ ) { double loc2 = loc1 / ( SAMPLE_RATE / arg0 ) * 2.0 * Math . PI ; loc0 [ loc1 ] = ( byte ) ( Math . sin ( loc2 ) * arg1 ) ; } return loc0 ; }
generate the actual sinus wave of one simple tone . concode_field_sep int MAX_AMPLITUDE concode_elem_sep float SAMPLE_RATE concode_field_sep String generate concode_elem_sep String writeWav concode_elem_sep byte[] generateSilence