From 0b0560019a3426539f7b67ef49cfda92b3bba2e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Lepin?= <stephane.lepin@gmail.com>
Date: Fri, 15 May 2020 04:08:40 +0200
Subject: [PATCH] requests(Get/SetAudioMonitor): change values to camelCase for
 consistency

---
 src/WSRequestHandler_Sources.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/WSRequestHandler_Sources.cpp b/src/WSRequestHandler_Sources.cpp
index 26db95f6..73ddae9f 100644
--- a/src/WSRequestHandler_Sources.cpp
+++ b/src/WSRequestHandler_Sources.cpp
@@ -1431,7 +1431,7 @@ RpcResponse WSRequestHandler::SetSourceFilterVisibility(const RpcRequest& reques
 *
 * @param {String} `sourceName` Source name.
 *
-* @return {String} `monitorType` The monitor type in use. Options: `none`, `monitor_only`, `monitor_and_output`.
+* @return {String} `monitorType` The monitor type in use. Options: `none`, `monitorOnly`, `monitorAndOutput`.
 *
 * @api requests
 * @name GetAudioMonitor
@@ -1464,10 +1464,10 @@ RpcResponse WSRequestHandler::GetAudioMonitor(const RpcRequest& request)
 		monitorType = "none";
 		break;
 	case OBS_MONITORING_TYPE_MONITOR_ONLY:
-		monitorType = "monitor_only";
+		monitorType = "monitorOnly";
 		break;
 	case OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT:
-		monitorType = "monitor_and_output";
+		monitorType = "monitorAndOutput";
 		break;
 	default:
 		monitorType = "unknown";
@@ -1482,7 +1482,7 @@ RpcResponse WSRequestHandler::GetAudioMonitor(const RpcRequest& request)
 * Set the audio monitoring type of the specified source.
 *
 * @param {String} `sourceName` Source name.
-* @param {String} `monitorType` The monitor type to use. Options: `none`, `monitor_only`, `monitor_and_output`.
+* @param {String} `monitorType` The monitor type to use. Options: `none`, `monitorOnly`, `monitorAndOutput`.
 *
 * @api requests
 * @name SetAudioMonitor
@@ -1509,9 +1509,9 @@ RpcResponse WSRequestHandler::SetAudioMonitor(const RpcRequest& request)
 
 	if (monitorType == "none") {
 		obs_source_set_monitoring_type(source, OBS_MONITORING_TYPE_NONE);
-	} else if (monitorType == "monitor_only") {
+	} else if (monitorType == "monitorOnly") {
 		obs_source_set_monitoring_type(source, OBS_MONITORING_TYPE_MONITOR_ONLY);
-	} else if (monitorType == "monitor_and_output") {
+	} else if (monitorType == "monitorAndOutput") {
 		obs_source_set_monitoring_type(source, OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT);
 	} else {
 		return request.failed("invalid monitorType");