decord/source/modules/spatial_audio/useIsSpatialAudioAvailable.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 13172
// Function ID: 13173
2026-07-22 07:54:56 +00:00
// Name: useIsSpatialAudioAvailable
2026-08-14 17:33:39 +00:00
// Dependencies: [4393, 4406, 13173, 589, 2]
2026-07-22 07:54:56 +00:00
// Exports: default, isSpatialAudioAvailable
2026-08-14 17:33:39 +00:00
// Module 13172 (useIsSpatialAudioAvailable)
2026-07-29 08:29:29 +00:00
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
2026-07-23 10:11:24 +00:00
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-08-14 17:33:39 +00:00
let obj = importDefault(13173);
2026-07-22 07:54:56 +00:00
obj = { location };
let enabled = obj.useConfig(obj).enabled;
2026-07-29 08:29:29 +00:00
const items = [_detectH265HardwareDecode];
2026-07-22 07:54:56 +00:00
if (enabled) {
2026-07-29 08:29:29 +00:00
enabled = obj3.useStateFromStores(items, () => _detectH265HardwareDecode.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-14 17:33:39 +00:00
let obj = importDefault(13173);
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-29 08:29:29 +00:00
enabled = _detectH265HardwareDecode.supports(Features.SPATIAL_AUDIO);
2026-07-22 07:54:56 +00:00
}
return enabled;
};