__mChannel(channel),
__mSampleType(sampleType),
__mAudioType(audioType),
- __mAudioIndex(audioIndex) {
+ __mAudioIndex(audioIndex),
+ __mReferenceDeviceId(0) {
// Check to invalid AudioInfo
if (sampleRate < CAudioInfo::MIN_SYSTEM_SAMPLERATE ||
sampleRate > CAudioInfo::MAX_SYSTEM_SAMPLERATE)
return bytes_in_sample * static_cast<int>(__mChannel);
}
+void CAudioInfo::bindEchoCancelReferenceDeviceId(int id) noexcept {
+ __mReferenceDeviceId = id;
+}
+
+int CAudioInfo::getEchoCancelReferenceDeviceId() noexcept {
+ return __mReferenceDeviceId;
+}
+
const char* CAudioInfo::getConvertedStreamType() {
if (__mAudioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA ||
__mAudioType >= CAudioInfo::EAudioType::AUDIO_TYPE_MAX)
}
THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_NOT_SUPPORTED_TYPE,
"The streamType of output is not supported [streamType:%s]", streamType);
-}
\ No newline at end of file
+}