Set global attenuation

PHOTO EMBED

Fri Mar 19 2021 18:23:30 GMT+0000 (UTC)

Saved by @roxanneskelly

    // set the global attenuation_coefficients
    await fetch(space_url(''), {
        method: 'POST',
        headers: {
            'Content-type': 'application/json; charset=UTF-8' // Indicates the content 
        },        
        body: JSON.stringify({
            'global-attenuation': 1.0
        })
    });
content_copyCOPY

https://github.com/highfidelity/Spatial-Audio-API-Examples/blob/main/experiments/environments/office/util/index.js