sample/vs_android.cc
/**
 * Sets the stream parameters which are specific to recording, including the sample rate which
 * is determined from the playback stream.
 * @param builder The recording stream builder
 */
Sets the stream parameters which are specific to recording, including the sample rate which
is determined from the playback stream.
@param builder The recording stream builder
Sets the stream parameters which are specific to recording including the sample rate which is determined from the playback stream . @param builder The recording stream builder
void VsAndroidCapture::setupRecordingStreamParameters(AAudioStreamBuilder *builder) {
  AAudioStreamBuilder_setDeviceId(builder, recordingDeviceId_);
  AAudioStreamBuilder_setDirection(builder, AAUDIO_DIRECTION_INPUT);
  AAudioStreamBuilder_setSampleRate(builder, 16000);
  AAudioStreamBuilder_setChannelCount(builder, inputChannelCount_);
  setupCommonStreamParameters(builder);
}
void VsAndroidCapture :: setupRecordingStreamParameters ( AAudioStreamBuilder * builder ) { AAudioStreamBuilder_setDeviceId ( builder , recordingDeviceId_ ) ; AAudioStreamBuilder_setDirection ( builder , AAUDIO_DIRECTION_INPUT ) ; AAudioStreamBuilder_setSampleRate ( builder , 16000 ) ; AAudioStreamBuilder_setChannelCount ( builder , inputChannelCount_ ) ; setupCommonStreamParameters ( builder ) ; }
Sets the stream parameters which are specific to recording, including the sample rate which
 is determined from the playback stream.
Sets the stream parameters which are specific to recording including the sample rate which is determined from the playback stream .