mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Requests: Add support check for SetInputAudioMonitorType
This commit is contained in:
parent
0c5d4ba3fb
commit
3b2369ae97
@ -600,6 +600,9 @@ RequestResult RequestHandler::SetInputAudioMonitorType(const Request& request)
|
||||
if (!(input && request.ValidateString("monitorType", statusCode, comment)))
|
||||
return RequestResult::Error(statusCode, comment);
|
||||
|
||||
if (!obs_audio_monitoring_available())
|
||||
return RequestResult::Error(RequestStatus::InvalidResourceState, "Audio monitoring is not available on this platform.");
|
||||
|
||||
enum obs_monitoring_type monitorType;
|
||||
std::string monitorTypeString = request.RequestData["monitorType"];
|
||||
if (monitorTypeString == "OBS_MONITORING_TYPE_NONE")
|
||||
|
Loading…
Reference in New Issue
Block a user