Searched refs:audioRecord (Results 1 – 2 of 2) sorted by relevance
59 private @Nullable AudioRecord audioRecord; field in WebRtcAudioRecord98 private AudioSamples(AudioRecord audioRecord, byte[] data) { in AudioSamples() argument99 this.audioFormat = audioRecord.getAudioFormat(); in AudioSamples()100 this.channelCount = audioRecord.getChannelCount(); in AudioSamples()101 this.sampleRate = audioRecord.getSampleRate(); in AudioSamples()152 assertTrue(audioRecord.getRecordingState() == AudioRecord.RECORDSTATE_RECORDING); in run()156 int bytesRead = audioRecord.read(byteBuffer, byteBuffer.capacity()); in run()173 new AudioSamples(audioRecord, data)); in run()192 if (audioRecord != null) { in run()193 audioRecord.stop(); in run()[all …]
89 private @Nullable AudioRecord audioRecord; field in WebRtcAudioRecord124 assertTrue(audioRecord.getRecordingState() == AudioRecord.RECORDSTATE_RECORDING); in run()131 int bytesRead = audioRecord.read(byteBuffer, byteBuffer.capacity()); in run()149 new JavaAudioDeviceModule.AudioSamples(audioRecord.getAudioFormat(), in run()150 audioRecord.getChannelCount(), audioRecord.getSampleRate(), data)); in run()163 if (audioRecord != null) { in run()164 audioRecord.stop(); in run()261 if (audioRecord != null) { in initRecording()299 audioRecord = createAudioRecordOnMOrHigher( in initRecording()307 audioRecord = createAudioRecordOnLowerThanM( in initRecording()[all …]