Searched refs:samples (Results 1 – 6 of 6) sorted by relevance
135 short[] samples = new short[len / 2]; in byteToShortArray() local139 samples[i] = bb.getShort(); in byteToShortArray()141 return samples; in byteToShortArray()153 short[] samples = new short[len]; in byteToShortArray() local157 samples[i] = bb.getShort(); in byteToShortArray()159 return samples; in byteToShortArray()169 public static byte[] shortToByteArray(short[] samples) { in shortToByteArray() argument170 int len = samples.length; in shortToByteArray()175 bb.putShort(samples[i]); in shortToByteArray()187 public static short[] scale(short[] samples, float db) { in scale() argument[all …]
207 short[] samples = Utils.byteToShortArray(mBuffer, 0, bytes); in run() local208 float[] results = mNative.measureRms(samples, in run()216 for (short x : samples) { in run()219 verifyRms /= samples.length; in run()
65 int samples = playbackData.length / 2; in loopback() local66 int duration = (samples * 1000) / AudioQualityVerifierActivity.SAMPLE_RATE; // In ms in loopback()68 int totalSamples = samples + 2 * padSamples; in loopback()120 Recorder(byte[] buffer, int samples) { in Recorder() argument122 mSamples = samples; in Recorder()
64 private void addGlitches(short[] samples) { in addGlitches() argument67 samples[random.nextInt(samples.length)] = 0; in addGlitches()
59 short[] samples = Utils.scale(mReference, db); in getStim() local60 return Utils.shortToByteArray(samples); in getStim()
304 short[] samples = Utils.byteToShortArray(mBuffer, 0, numBytesRead);305 float[] results = mNative.measureRms(samples,