decord/source/modules/spatial_audio/useIsSpatialAudioAvailable.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12818
// Function ID: 99895
2026-07-22 07:54:56 +00:00
// Name: useIsSpatialAudioAvailable
2026-07-27 11:26:19 +00:00
// Dependencies: [4178, 4192, 12819, 566, 2]
2026-07-22 07:54:56 +00:00
// Exports: default, isSpatialAudioAvailable
2026-07-27 11:26:19 +00:00
// Module 12818 (useIsSpatialAudioAvailable)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Features } from "DesktopSources";
const require = arg1;
const result = require("apexExperiment").fileFinishedImporting("modules/spatial_audio/useIsSpatialAudioAvailable.tsx");
2026-07-22 07:54:56 +00:00
export default function useIsSpatialAudioAvailable(location) {
2026-07-27 11:26:19 +00:00
let obj = importDefault(12819);
2026-07-22 07:54:56 +00:00
obj = { location };
let enabled = obj.useConfig(obj).enabled;
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct];
2026-07-22 07:54:56 +00:00
if (enabled) {
2026-07-23 10:11:24 +00:00
enabled = obj3.useStateFromStores(items, () => outer1_3.supports(outer1_4.SPATIAL_AUDIO));
2026-07-22 07:54:56 +00:00
}
return enabled;
};
2026-07-23 10:11:24 +00:00
export const isSpatialAudioAvailable = function isSpatialAudioAvailable(RTCConnectionStore) {
2026-07-27 11:26:19 +00:00
let obj = importDefault(12819);
2026-07-23 10:11:24 +00:00
obj = { location: RTCConnectionStore };
2026-07-22 07:54:56 +00:00
let enabled = obj.getConfig(obj).enabled;
if (enabled) {
2026-07-23 10:11:24 +00:00
enabled = _isNativeReflectConstruct.supports(Features.SPATIAL_AUDIO);
2026-07-22 07:54:56 +00:00
}
return enabled;
};