Searched refs:bytesPerSample (Results 1 – 7 of 7) sorted by relevance
127 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testSynchronizedRecord() local128 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
158 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local159 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
608 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testTimestamp() local609 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp()1111 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local1112 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()1124 ByteBuffer.allocateDirect(BUFFER_SAMPLES * bytesPerSample); in doTest()1130 amount *= bytesPerSample; // in bytes in doTest()1155 samplesRead += ret / bytesPerSample; in doTest()
127 public int bytesPerSample = 2; field in AudioTrackLatencyTest.TestSetup152 int smallBuffSizeInFrames = smallBufferSize / (samplesPerFrame * bytesPerSample); in createTrack()
2263 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testVariableRatePlayback() local2264 final int bytesPerFrame = numChannels * bytesPerSample; in testVariableRatePlayback()2330 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testStopDrain() local2331 final int bytesPerFrame = channelCount * bytesPerSample; in testStopDrain()
277 int bytesPerSample = 2; // for ENCODING_PCM_16BIT in canReadAudio() local279 int bytesPerSecond = bytesPerSample * sampleRate; // for single channel in canReadAudio()
124 int bytesPerSample = getBytesPerSample(mInputAudioFormat); in run() local138 (float)(mInputSampleRate * bytesPerSample * in run()195 mAudioShortArray.length; i += bytesPerSample) { in run()