mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requests: rename Get/SetAudioMonitor to Get/SetAudioMonitorType
This commit is contained in:
parent
0b0560019a
commit
f8c8e42ae9
@ -97,8 +97,8 @@ const QHash<QString, RpcMethodHandler> WSRequestHandler::messageMap {
|
||||
{ "GetSourceTypesList", &WSRequestHandler::GetSourceTypesList },
|
||||
{ "GetSourceSettings", &WSRequestHandler::GetSourceSettings },
|
||||
{ "SetSourceSettings", &WSRequestHandler::SetSourceSettings },
|
||||
{ "GetAudioMonitor", &WSRequestHandler::GetAudioMonitor },
|
||||
{ "SetAudioMonitor", &WSRequestHandler::SetAudioMonitor },
|
||||
{ "GetAudioMonitorType", &WSRequestHandler::GetAudioMonitorType },
|
||||
{ "SetAudioMonitorType", &WSRequestHandler::SetAudioMonitorType },
|
||||
{ "TakeSourceScreenshot", &WSRequestHandler::TakeSourceScreenshot },
|
||||
|
||||
{ "GetSourceFilters", &WSRequestHandler::GetSourceFilters },
|
||||
|
@ -112,8 +112,8 @@ class WSRequestHandler {
|
||||
RpcResponse GetSourceTypesList(const RpcRequest&);
|
||||
RpcResponse GetSourceSettings(const RpcRequest&);
|
||||
RpcResponse SetSourceSettings(const RpcRequest&);
|
||||
RpcResponse GetAudioMonitor(const RpcRequest&);
|
||||
RpcResponse SetAudioMonitor(const RpcRequest&);
|
||||
RpcResponse GetAudioMonitorType(const RpcRequest&);
|
||||
RpcResponse SetAudioMonitorType(const RpcRequest&);
|
||||
RpcResponse TakeSourceScreenshot(const RpcRequest&);
|
||||
|
||||
RpcResponse GetSourceFilters(const RpcRequest&);
|
||||
|
@ -1434,11 +1434,11 @@ RpcResponse WSRequestHandler::SetSourceFilterVisibility(const RpcRequest& reques
|
||||
* @return {String} `monitorType` The monitor type in use. Options: `none`, `monitorOnly`, `monitorAndOutput`.
|
||||
*
|
||||
* @api requests
|
||||
* @name GetAudioMonitor
|
||||
* @name GetAudioMonitorType
|
||||
* @category sources
|
||||
* @since 4.8.0
|
||||
*/
|
||||
RpcResponse WSRequestHandler::GetAudioMonitor(const RpcRequest& request)
|
||||
RpcResponse WSRequestHandler::GetAudioMonitorType(const RpcRequest& request)
|
||||
{
|
||||
if (!request.hasField("sourceName")) {
|
||||
return request.failed("missing request parameters");
|
||||
@ -1485,11 +1485,11 @@ RpcResponse WSRequestHandler::GetAudioMonitor(const RpcRequest& request)
|
||||
* @param {String} `monitorType` The monitor type to use. Options: `none`, `monitorOnly`, `monitorAndOutput`.
|
||||
*
|
||||
* @api requests
|
||||
* @name SetAudioMonitor
|
||||
* @name SetAudioMonitorType
|
||||
* @category sources
|
||||
* @since 4.8.0
|
||||
*/
|
||||
RpcResponse WSRequestHandler::SetAudioMonitor(const RpcRequest& request)
|
||||
RpcResponse WSRequestHandler::SetAudioMonitorType(const RpcRequest& request)
|
||||
{
|
||||
if (!request.hasField("sourceName") || !request.hasField("monitorType")) {
|
||||
return request.failed("missing request parameters");
|
||||
|
Loading…
x
Reference in New Issue
Block a user