mDirection = CAudioInfo::EAudioDirection::AUDIO_DIRECTION_IN;
}
+//LCOV_EXCL_START
CAudioInput::CAudioInput(
unsigned int sampleRate,
CAudioInfo::EChannel channel,
mDirection = CAudioInfo::EAudioDirection::AUDIO_DIRECTION_IN;
mAudioInfo = CAudioInfo(sampleRate, channel, type, audioType, -1);
}
+//LCOV_EXCL_STOP
CAudioInput::~CAudioInput() {
}
/* Init StreamSpec */
AUDIO_IO_LOGD("Set Stream Spec : CPulseStreamSpec::STREAM_LATENCY_INPUT_DEFAULT");
CPulseStreamSpec::EStreamLatency streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_INPUT_DEFAULT;
+ /* Override the default value by audio type */
+ if (audioType == CAudioInfo::EAudioType::AUDIO_IN_TYPE_VOIP)
+ streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_INPUT_VOIP;
+
CPulseStreamSpec spec(streamSpec, mAudioInfo);
internalLock();
internalUnlock();
throw;
} catch (const std::bad_alloc&) {
+//LCOV_EXCL_START
internalUnlock();
THROW_ERROR_MSG(CAudioError::EError::ERROR_OUT_OF_MEMORY, "Failed to allocate CPulseAudioClient object");
+//LCOV_EXCL_STOP
}
}