32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Module ID: 12878
|
|
// Function ID: 12879
|
|
// Name: useIsSpatialAudioAvailable
|
|
// Dependencies: [4236, 4250, 12879, 589, 2]
|
|
// Exports: default, isSpatialAudioAvailable
|
|
|
|
// Module 12878 (useIsSpatialAudioAvailable)
|
|
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
|
|
import { Features } from "DesktopSources";
|
|
|
|
const require = arg1;
|
|
const result = require("apexExperiment").fileFinishedImporting("modules/spatial_audio/useIsSpatialAudioAvailable.tsx");
|
|
|
|
export default function useIsSpatialAudioAvailable(location) {
|
|
let obj = importDefault(12879);
|
|
obj = { location };
|
|
let enabled = obj.useConfig(obj).enabled;
|
|
const items = [_detectH265HardwareDecode];
|
|
if (enabled) {
|
|
enabled = obj3.useStateFromStores(items, () => _detectH265HardwareDecode.supports(constants.SPATIAL_AUDIO));
|
|
}
|
|
return enabled;
|
|
};
|
|
export const isSpatialAudioAvailable = function isSpatialAudioAvailable(RTCConnectionStore) {
|
|
let obj = importDefault(12879);
|
|
obj = { location: RTCConnectionStore };
|
|
let enabled = obj.getConfig(obj).enabled;
|
|
if (enabled) {
|
|
enabled = _detectH265HardwareDecode.supports(Features.SPATIAL_AUDIO);
|
|
}
|
|
return enabled;
|
|
};
|