UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 18.3 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AvatarAudioOutputManager = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function AvatarAudioOutputManager(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, AudioOutput = props.AudioOutput, IsViewVoice = props.IsViewVoice, WhisperConfig = props.WhisperConfig, NormalConfig = props.NormalConfig, ShoutConfig = props.ShoutConfig, BroadcastConfig = props.BroadcastConfig, __legacyWhisperVolume = props.__legacyWhisperVolume, __legacyNormalVolume = props.__legacyNormalVolume, __legacyShoutVolume = props.__legacyShoutVolume, __legacyBroadcastVolume = props.__legacyBroadcastVolume, __legacyNormalDopplerLevel = props.__legacyNormalDopplerLevel, __legacyShoutDopplerLevel = props.__legacyShoutDopplerLevel, __legacyWhisperRange = props.__legacyWhisperRange, _activeUser = props._activeUser, _enabled = props._enabled, _volume = props._volume, _doppler = props._doppler, _spatialize = props._spatialize, _spatialBlend = props._spatialBlend, _minDistance = props._minDistance, _maxDistance = props._maxDistance, _rollOffMode = props._rollOffMode, _distanceSpace = props._distanceSpace, _minScale = props._minScale, _maxScale = props._maxScale, _scaleCompensation = props._scaleCompensation, _audioConfiguration = props._audioConfiguration; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CommonAvatar.AvatarAudioOutputManager", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 4 }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AudioOutput]", name: "AudioOutput", id: typeof AudioOutput === "object" && "id" in AudioOutput ? AudioOutput === null || AudioOutput === void 0 ? void 0 : AudioOutput.id : undefined, value: typeof AudioOutput === "object" && "value" in AudioOutput ? AudioOutput === null || AudioOutput === void 0 ? void 0 : AudioOutput.value : AudioOutput, isRaw: typeof AudioOutput === "object" && "isRaw" in AudioOutput && AudioOutput.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IsViewVoice", id: typeof IsViewVoice === "object" && "id" in IsViewVoice ? IsViewVoice === null || IsViewVoice === void 0 ? void 0 : IsViewVoice.id : undefined, value: typeof IsViewVoice === "object" && "value" in IsViewVoice ? IsViewVoice === null || IsViewVoice === void 0 ? void 0 : IsViewVoice.value : IsViewVoice, isRaw: typeof IsViewVoice === "object" && "isRaw" in IsViewVoice && IsViewVoice.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.VoiceModeConfig", name: "WhisperConfig", id: typeof WhisperConfig === "object" && "id" in WhisperConfig ? WhisperConfig === null || WhisperConfig === void 0 ? void 0 : WhisperConfig.id : undefined, value: typeof WhisperConfig === "object" && "value" in WhisperConfig ? WhisperConfig === null || WhisperConfig === void 0 ? void 0 : WhisperConfig.value : WhisperConfig, isRaw: typeof WhisperConfig === "object" && "isRaw" in WhisperConfig && WhisperConfig.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.VoiceModeConfig", name: "NormalConfig", id: typeof NormalConfig === "object" && "id" in NormalConfig ? NormalConfig === null || NormalConfig === void 0 ? void 0 : NormalConfig.id : undefined, value: typeof NormalConfig === "object" && "value" in NormalConfig ? NormalConfig === null || NormalConfig === void 0 ? void 0 : NormalConfig.value : NormalConfig, isRaw: typeof NormalConfig === "object" && "isRaw" in NormalConfig && NormalConfig.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.VoiceModeConfig", name: "ShoutConfig", id: typeof ShoutConfig === "object" && "id" in ShoutConfig ? ShoutConfig === null || ShoutConfig === void 0 ? void 0 : ShoutConfig.id : undefined, value: typeof ShoutConfig === "object" && "value" in ShoutConfig ? ShoutConfig === null || ShoutConfig === void 0 ? void 0 : ShoutConfig.value : ShoutConfig, isRaw: typeof ShoutConfig === "object" && "isRaw" in ShoutConfig && ShoutConfig.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.VoiceModeConfig", name: "BroadcastConfig", id: typeof BroadcastConfig === "object" && "id" in BroadcastConfig ? BroadcastConfig === null || BroadcastConfig === void 0 ? void 0 : BroadcastConfig.id : undefined, value: typeof BroadcastConfig === "object" && "value" in BroadcastConfig ? BroadcastConfig === null || BroadcastConfig === void 0 ? void 0 : BroadcastConfig.value : BroadcastConfig, isRaw: typeof BroadcastConfig === "object" && "isRaw" in BroadcastConfig && BroadcastConfig.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyWhisperVolume-ID", id: typeof __legacyWhisperVolume === "object" && "id" in __legacyWhisperVolume ? __legacyWhisperVolume === null || __legacyWhisperVolume === void 0 ? void 0 : __legacyWhisperVolume.id : undefined, value: typeof __legacyWhisperVolume === "object" && "value" in __legacyWhisperVolume ? __legacyWhisperVolume === null || __legacyWhisperVolume === void 0 ? void 0 : __legacyWhisperVolume.value : __legacyWhisperVolume, readOnly: true, isRaw: typeof __legacyWhisperVolume === "object" && "isRaw" in __legacyWhisperVolume && __legacyWhisperVolume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyNormalVolume-ID", id: typeof __legacyNormalVolume === "object" && "id" in __legacyNormalVolume ? __legacyNormalVolume === null || __legacyNormalVolume === void 0 ? void 0 : __legacyNormalVolume.id : undefined, value: typeof __legacyNormalVolume === "object" && "value" in __legacyNormalVolume ? __legacyNormalVolume === null || __legacyNormalVolume === void 0 ? void 0 : __legacyNormalVolume.value : __legacyNormalVolume, readOnly: true, isRaw: typeof __legacyNormalVolume === "object" && "isRaw" in __legacyNormalVolume && __legacyNormalVolume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyShoutVolume-ID", id: typeof __legacyShoutVolume === "object" && "id" in __legacyShoutVolume ? __legacyShoutVolume === null || __legacyShoutVolume === void 0 ? void 0 : __legacyShoutVolume.id : undefined, value: typeof __legacyShoutVolume === "object" && "value" in __legacyShoutVolume ? __legacyShoutVolume === null || __legacyShoutVolume === void 0 ? void 0 : __legacyShoutVolume.value : __legacyShoutVolume, readOnly: true, isRaw: typeof __legacyShoutVolume === "object" && "isRaw" in __legacyShoutVolume && __legacyShoutVolume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyBroadcastVolume-ID", id: typeof __legacyBroadcastVolume === "object" && "id" in __legacyBroadcastVolume ? __legacyBroadcastVolume === null || __legacyBroadcastVolume === void 0 ? void 0 : __legacyBroadcastVolume.id : undefined, value: typeof __legacyBroadcastVolume === "object" && "value" in __legacyBroadcastVolume ? __legacyBroadcastVolume === null || __legacyBroadcastVolume === void 0 ? void 0 : __legacyBroadcastVolume.value : __legacyBroadcastVolume, readOnly: true, isRaw: typeof __legacyBroadcastVolume === "object" && "isRaw" in __legacyBroadcastVolume && __legacyBroadcastVolume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyNormalDopplerLevel-ID", id: typeof __legacyNormalDopplerLevel === "object" && "id" in __legacyNormalDopplerLevel ? __legacyNormalDopplerLevel === null || __legacyNormalDopplerLevel === void 0 ? void 0 : __legacyNormalDopplerLevel.id : undefined, value: typeof __legacyNormalDopplerLevel === "object" && "value" in __legacyNormalDopplerLevel ? __legacyNormalDopplerLevel === null || __legacyNormalDopplerLevel === void 0 ? void 0 : __legacyNormalDopplerLevel.value : __legacyNormalDopplerLevel, readOnly: true, isRaw: typeof __legacyNormalDopplerLevel === "object" && "isRaw" in __legacyNormalDopplerLevel && __legacyNormalDopplerLevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyShoutDopplerLevel-ID", id: typeof __legacyShoutDopplerLevel === "object" && "id" in __legacyShoutDopplerLevel ? __legacyShoutDopplerLevel === null || __legacyShoutDopplerLevel === void 0 ? void 0 : __legacyShoutDopplerLevel.id : undefined, value: typeof __legacyShoutDopplerLevel === "object" && "value" in __legacyShoutDopplerLevel ? __legacyShoutDopplerLevel === null || __legacyShoutDopplerLevel === void 0 ? void 0 : __legacyShoutDopplerLevel.value : __legacyShoutDopplerLevel, readOnly: true, isRaw: typeof __legacyShoutDopplerLevel === "object" && "isRaw" in __legacyShoutDopplerLevel && __legacyShoutDopplerLevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "__legacyWhisperRange-ID", id: typeof __legacyWhisperRange === "object" && "id" in __legacyWhisperRange ? __legacyWhisperRange === null || __legacyWhisperRange === void 0 ? void 0 : __legacyWhisperRange.id : undefined, value: typeof __legacyWhisperRange === "object" && "value" in __legacyWhisperRange ? __legacyWhisperRange === null || __legacyWhisperRange === void 0 ? void 0 : __legacyWhisperRange.value : __legacyWhisperRange, readOnly: true, isRaw: typeof __legacyWhisperRange === "object" && "isRaw" in __legacyWhisperRange && __legacyWhisperRange.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.User]", name: "_activeUser", id: typeof _activeUser === "object" && "id" in _activeUser ? _activeUser === null || _activeUser === void 0 ? void 0 : _activeUser.id : undefined, value: typeof _activeUser === "object" && "value" in _activeUser ? _activeUser === null || _activeUser === void 0 ? void 0 : _activeUser.value : _activeUser, isRaw: typeof _activeUser === "object" && "isRaw" in _activeUser && _activeUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_enabled", id: typeof _enabled === "object" && "id" in _enabled ? _enabled === null || _enabled === void 0 ? void 0 : _enabled.id : undefined, value: typeof _enabled === "object" && "value" in _enabled ? _enabled === null || _enabled === void 0 ? void 0 : _enabled.value : _enabled, isRaw: typeof _enabled === "object" && "isRaw" in _enabled && _enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_volume", id: typeof _volume === "object" && "id" in _volume ? _volume === null || _volume === void 0 ? void 0 : _volume.id : undefined, value: typeof _volume === "object" && "value" in _volume ? _volume === null || _volume === void 0 ? void 0 : _volume.value : _volume, isRaw: typeof _volume === "object" && "isRaw" in _volume && _volume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_doppler", id: typeof _doppler === "object" && "id" in _doppler ? _doppler === null || _doppler === void 0 ? void 0 : _doppler.id : undefined, value: typeof _doppler === "object" && "value" in _doppler ? _doppler === null || _doppler === void 0 ? void 0 : _doppler.value : _doppler, isRaw: typeof _doppler === "object" && "isRaw" in _doppler && _doppler.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_spatialize", id: typeof _spatialize === "object" && "id" in _spatialize ? _spatialize === null || _spatialize === void 0 ? void 0 : _spatialize.id : undefined, value: typeof _spatialize === "object" && "value" in _spatialize ? _spatialize === null || _spatialize === void 0 ? void 0 : _spatialize.value : _spatialize, isRaw: typeof _spatialize === "object" && "isRaw" in _spatialize && _spatialize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_spatialBlend", id: typeof _spatialBlend === "object" && "id" in _spatialBlend ? _spatialBlend === null || _spatialBlend === void 0 ? void 0 : _spatialBlend.id : undefined, value: typeof _spatialBlend === "object" && "value" in _spatialBlend ? _spatialBlend === null || _spatialBlend === void 0 ? void 0 : _spatialBlend.value : _spatialBlend, isRaw: typeof _spatialBlend === "object" && "isRaw" in _spatialBlend && _spatialBlend.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_minDistance", id: typeof _minDistance === "object" && "id" in _minDistance ? _minDistance === null || _minDistance === void 0 ? void 0 : _minDistance.id : undefined, value: typeof _minDistance === "object" && "value" in _minDistance ? _minDistance === null || _minDistance === void 0 ? void 0 : _minDistance.value : _minDistance, isRaw: typeof _minDistance === "object" && "isRaw" in _minDistance && _minDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_maxDistance", id: typeof _maxDistance === "object" && "id" in _maxDistance ? _maxDistance === null || _maxDistance === void 0 ? void 0 : _maxDistance.id : undefined, value: typeof _maxDistance === "object" && "value" in _maxDistance ? _maxDistance === null || _maxDistance === void 0 ? void 0 : _maxDistance.value : _maxDistance, isRaw: typeof _maxDistance === "object" && "isRaw" in _maxDistance && _maxDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[FrooxEngine.AudioRolloffMode]", name: "_rollOffMode", id: typeof _rollOffMode === "object" && "id" in _rollOffMode ? _rollOffMode === null || _rollOffMode === void 0 ? void 0 : _rollOffMode.id : undefined, value: typeof _rollOffMode === "object" && "value" in _rollOffMode ? _rollOffMode === null || _rollOffMode === void 0 ? void 0 : _rollOffMode.value : _rollOffMode, isRaw: typeof _rollOffMode === "object" && "isRaw" in _rollOffMode && _rollOffMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[FrooxEngine.AudioDistanceSpace]", name: "_distanceSpace", id: typeof _distanceSpace === "object" && "id" in _distanceSpace ? _distanceSpace === null || _distanceSpace === void 0 ? void 0 : _distanceSpace.id : undefined, value: typeof _distanceSpace === "object" && "value" in _distanceSpace ? _distanceSpace === null || _distanceSpace === void 0 ? void 0 : _distanceSpace.value : _distanceSpace, isRaw: typeof _distanceSpace === "object" && "isRaw" in _distanceSpace && _distanceSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_minScale", id: typeof _minScale === "object" && "id" in _minScale ? _minScale === null || _minScale === void 0 ? void 0 : _minScale.id : undefined, value: typeof _minScale === "object" && "value" in _minScale ? _minScale === null || _minScale === void 0 ? void 0 : _minScale.value : _minScale, isRaw: typeof _minScale === "object" && "isRaw" in _minScale && _minScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_maxScale", id: typeof _maxScale === "object" && "id" in _maxScale ? _maxScale === null || _maxScale === void 0 ? void 0 : _maxScale.id : undefined, value: typeof _maxScale === "object" && "value" in _maxScale ? _maxScale === null || _maxScale === void 0 ? void 0 : _maxScale.value : _maxScale, isRaw: typeof _maxScale === "object" && "isRaw" in _maxScale && _maxScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "_scaleCompensation", id: typeof _scaleCompensation === "object" && "id" in _scaleCompensation ? _scaleCompensation === null || _scaleCompensation === void 0 ? void 0 : _scaleCompensation.id : undefined, value: typeof _scaleCompensation === "object" && "value" in _scaleCompensation ? _scaleCompensation === null || _scaleCompensation === void 0 ? void 0 : _scaleCompensation.value : _scaleCompensation, isRaw: typeof _scaleCompensation === "object" && "isRaw" in _scaleCompensation && _scaleCompensation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.AvatarAudioConfiguration]", name: "_audioConfiguration", id: typeof _audioConfiguration === "object" && "id" in _audioConfiguration ? _audioConfiguration === null || _audioConfiguration === void 0 ? void 0 : _audioConfiguration.id : undefined, value: typeof _audioConfiguration === "object" && "value" in _audioConfiguration ? _audioConfiguration === null || _audioConfiguration === void 0 ? void 0 : _audioConfiguration.value : _audioConfiguration, isRaw: typeof _audioConfiguration === "object" && "isRaw" in _audioConfiguration && _audioConfiguration.isRaw ? true : undefined })] }))); } exports.AvatarAudioOutputManager = AvatarAudioOutputManager; ;