How to use the @pixi/loaders.LoaderResource.setExtensionXhrType function in @pixi/loaders

To help you get started, we’ve selected a few @pixi/loaders examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi-sound / src / loader / SoundLoader.ts View on Github external
exts.forEach((ext) => {
                LoaderResource.setExtensionXhrType(ext, LoaderResource.XHR_RESPONSE_TYPE.BUFFER);
                LoaderResource.setExtensionLoadType(ext, LoaderResource.LOAD_TYPE.XHR);
            });
        }