ret = func(callback, user_data);
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_SET_ERROR_CALLBACK, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to set error callback(%p, %p), ret(%d)", callback, user_data, ret);
ret = func();
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_START_RECORDING, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to start recording, ret(%d)", ret);
ret = func();
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_STOP_RECORDING, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to stop recording, ret(%d)", ret);
ret = func(session);
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_SET_RECORDING_SESSION, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to set recording session, ret(%d)", ret);
ret = func(ratio);
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_SET_BACKGROUND_VOLUME, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to set background volume to %f, ret(%d)", ratio, ret);
ret = func(rate, channel, audio_type);
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_GET_AUDIO_FORMAT, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to get audio format, ret(%d)", ret);
ret = func(type);
} catch (const std::exception& e) {
MAS_LOGE("[ERROR] %s of dependency module threw exception : %s",
- MAS_DEPENDENCY_FUNC_DEINITIALIZE, e.what());
+ MAS_DEPENDENCY_FUNC_GET_AUDIO_SOURCE_TYPE, e.what());
}
if (0 != ret) {
MAS_LOGE("[ERROR] Fail to get audio source type, ret(%d)", ret);