decord/source/modules/spatial_audio/useIsSpatialAudioAvailable.tsx

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13295
// Function ID: 13296
2026-07-22 07:54:56 +00:00
// Name: useIsSpatialAudioAvailable
2026-08-25 06:04:03 +00:00
// Dependencies: [4431, 4444, 13296, 589, 2]
2026-07-22 07:54:56 +00:00
// Exports: default, isSpatialAudioAvailable
2026-08-25 06:04:03 +00:00
// Module 13295 (useIsSpatialAudioAvailable)
import apexExperimentDefault from "apexExperiment" /* 13296 */;
import closure_3 from "_detectH265HardwareDecode" /* 4431 */;
import { Features } from "DesktopSources" /* 4444 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/spatial_audio/useIsSpatialAudioAvailable.tsx");
2026-07-22 07:54:56 +00:00
export default function useIsSpatialAudioAvailable(location) {
2026-08-24 06:08:38 +00:00
let obj = apexExperimentDefault;
2026-07-22 07:54:56 +00:00
obj = { location };
let enabled = obj.useConfig(obj).enabled;
2026-08-24 06:08:38 +00:00
const items = [closure_3];
2026-07-22 07:54:56 +00:00
if (enabled) {
2026-08-24 06:08:38 +00:00
enabled = obj3.useStateFromStores(items, () => closure_3.supports(constants.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-08-24 06:08:38 +00:00
let obj = apexExperimentDefault;
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-08-24 06:08:38 +00:00
enabled = closure_3.supports(Features.SPATIAL_AUDIO);
2026-07-22 07:54:56 +00:00
}
return enabled;
};