bytes_in_sample = 2;
break;
default:
- AUDIO_IO_LOGW("As unrecognized sample type %d, let's assume S16_LE", __mSampleType);
+ AUDIO_IO_LOGW("As unrecognized sample type %d, let's assume S16_LE", static_cast<int>(__mSampleType));
bytes_in_sample = 2;
break;
}
number_of_channel = 2;
break;
default:
- AUDIO_IO_LOGW("As unrecognized channel %d, let's assume STEREO", __mChannel);
+ AUDIO_IO_LOGW("As unrecognized channel %d, let's assume STEREO", static_cast<int>(__mChannel));
number_of_channel = 2;
break;
}
void CAudioInfo::convertAudioType2StreamType(CAudioInfo::EAudioType audioType, char **streamType) {
if (audioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA || audioType >= CAudioInfo::EAudioType::AUDIO_TYPE_MAX) {
THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_NOT_SUPPORTED_TYPE,
- "The audioType is not supported [audioType:%u]", to_integral(audioType));
+ "The audioType is not supported [audioType:%u]", to_integral(audioType));
}
*streamType = (char *)__STREAM_TYPE_TABLE[(unsigned int)audioType];
return;