Method GetSpecialInputsAsync
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
GetSpecialInputsAsync(CancellationToken)
Asks OBS Studio which inputs it uses for the audio devices of the computer that every scene has: the desktop audio and the microphones.
public Task<ObsSpecialInputs> GetSpecialInputsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that ends the wait. A request that was not sent yet is not sent.
Returns
- Task<ObsSpecialInputs>
The inputs, which are in Inputs too. A device that is not chosen is null.
Remarks
OBS Studio says the names of the inputs, and the model gives the objects that have those names when the answer comes. An input that the model does not have yet (OBS Studio made it a moment ago) is null. The request is made in its turn, after the changes that were asked for before it (see SetEnabledAsync(bool, CancellationToken)).
Exceptions
- ObsNotConnectedException
There is no connection to OBS Studio.
- ObsNotReadyException
OBS Studio is changing its scene collection, or did so after the call.
- TimeoutException
OBS Studio did not answer in time (WriteTimeout).