__handle_safe_free(handle, (void *)input, false);
return __convert_CAudioError(e);
} catch (const std::bad_alloc&) {
+//LCOV_EXCL_START
CAudioError e = CAudioError::EError::ERROR_OUT_OF_MEMORY;
AUDIO_IO_LOGE("Failed to allocate handle");
__handle_safe_free(handle, (void *)input, false);
return __convert_CAudioError(e);
+//LCOV_EXCL_STOP
}
return AUDIO_IO_ERROR_NONE;
audioIo->stream_callback.onStream(audioIo, nbytes, audioIo->stream_callback.user_data);
}
+//LCOV_EXCL_START
static void __state_changed_cb_internal(CAudioInfo::EAudioIOState state,
CAudioInfo::EAudioIOState state_prev,
bool by_policy,
__convert_state_type(state), by_policy,
audioIo->state_changed_callback.user_data);
}
+//LCOV_EXCL_STOP
int cpp_audio_in_set_stream_cb(audio_in_h input, audio_in_stream_cb callback, void* user_data) {
audio_io_s* handle = static_cast<audio_io_s*>(input);
__handle_safe_free(handle, (void *)output, true);
return __convert_CAudioError(e);
} catch (const std::bad_alloc&) {
+//LCOV_EXCL_START
CAudioError e = CAudioError::EError::ERROR_OUT_OF_MEMORY;
AUDIO_IO_LOGE("Failed to allocate handle");
__handle_safe_free(handle, (void *)output, true);
return __convert_CAudioError(e);
+//LCOV_EXCL_STOP
}
return AUDIO_IO_ERROR_NONE;