32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Module ID: 12806
|
|
// Function ID: 99763
|
|
// Name: useIsSpatialAudioAvailable
|
|
// Dependencies: [4177, 4191, 12807, 566, 2]
|
|
// Exports: default, isSpatialAudioAvailable
|
|
|
|
// Module 12806 (useIsSpatialAudioAvailable)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
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(12807);
|
|
obj = { location };
|
|
let enabled = obj.useConfig(obj).enabled;
|
|
const items = [_isNativeReflectConstruct];
|
|
if (enabled) {
|
|
enabled = obj3.useStateFromStores(items, () => outer1_3.supports(outer1_4.SPATIAL_AUDIO));
|
|
}
|
|
return enabled;
|
|
};
|
|
export const isSpatialAudioAvailable = function isSpatialAudioAvailable(RTCConnectionStore) {
|
|
let obj = importDefault(12807);
|
|
obj = { location: RTCConnectionStore };
|
|
let enabled = obj.getConfig(obj).enabled;
|
|
if (enabled) {
|
|
enabled = _isNativeReflectConstruct.supports(Features.SPATIAL_AUDIO);
|
|
}
|
|
return enabled;
|
|
};
|