Examples / AudioIO / Audio Probe

Right-click to copy examples to your workspace


audioprobe.js

// dump the results of probing for audio devices.
let p = await Aengine.Probe();
// console.log(Object.keys(p));  // -> audioapis
for(let api of p.audioapis)
{
    // console.log(Object.keys(api)); // -> API, numdevs, devices
    console.log(`${api.API} has ${api.numdevs} devices --- `);
    for(let dev of api.devices)
    {
        console.log(`-- ${dev.name} inch:${dev.inputChannels} outch:${dev.outputChannels}`);
    }
}

This example dumps the unformatted result of Aengine.Probe. This is used by the Probe Audio Settings menu item.

home .. topics .. interface .. reference .. examples .. tipjar