};
SoundManager.prototype.getActivatedDeviceList = function() {
+ utils_.deprecationWarn(
+ 'getActivatedDeviceList() is deprecated and will be ' +
+ 'removed from next release. ' +
+ 'Use getRunningDeviceList() instead.',
+ '7.5'
+ );
var result = native_.callSync('SoundManagerGetActivatedDeviceList', {});
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
device: { value: data.device, writable: false, enumerable: true },
direction: { value: data.direction, writable: false, enumerable: true },
isConnected: { value: data.isConnected, writable: false, enumerable: true },
- isActivated: { value: data.isActivated, writable: false, enumerable: true }
+ isActivated: { value: data.isRunning, writable: false, enumerable: true }, // isActivated already uses isRunning concept for a while
+ isRunning: { value: data.isRunning, writable: false, enumerable: true }
});
}
void SoundInstance::SoundManagerGetActivatedDeviceList(const picojson::value& args,
picojson::object& out) {
ScopeLogger();
+ DEPRECATION_WARN(
+ "'Activated' concept is deprecated and replated with 'running' concept. "
+ "getActivatedDeviceList() is deprecated and will be removed from next release."
+ "Use getConnectedDeviceList() instead and check isRunning property to get running devices.",
+ "7.5");
manager_.GetDeviceList((sound_device_mask_e)SOUND_DEVICE_STATE_DEPRECATED_ACTIVATED_MASK, out);
}
ErrorCode::UNKNOWN_ERR, "Getting device state failed",
("sound_manager_is_device_running error: %d (%s)", ret, get_error_message(ret)));
}
- obj->insert(std::make_pair("isActivated", picojson::value(state)));
+ obj->insert(std::make_pair("isRunning", picojson::value(state)));
// get connection
if (check_connection) {