Home
last modified time | relevance | path

Searched refs:audioRecord (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioRecord.java59 private @Nullable AudioRecord audioRecord; field in WebRtcAudioRecord
98 private AudioSamples(AudioRecord audioRecord, byte[] data) { in AudioSamples() argument
99 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 …]
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioRecord.java89 private @Nullable AudioRecord audioRecord; field in WebRtcAudioRecord
124 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 …]