The WASAPI source filter can only be used as the first filter of an input graph. It reads audio data from the specified WASAPI device.
JSON Structure
{
"name": "WASAPI Source",
"device": {
"name": "...",
"loopback": true/false,
"exclusiveMode": true/false
},
"format": {
"sampleRate": ...,
"resolution": ...
}
}
|
Field |
Description |
|---|---|
|
device |
Defines the WASAPI device and the mode to use it.
|
|
format |
Describes the audio format, which is to be read from the device.
|
Notes:
-
The "name" of a given WASAPI device is not always obvious. ROAD's devices API can enumerate the names of all installed WASAPI devices, together with their number of channels.
-
If the resolution is given as 32, the WASAPI device is configured to deliver floating-point PCM samples.
-
There is no need to specify a channel count in the "format" data. WASAPI devices automatically deliver their default number of channels (usually stereo)