Update enum and bitflags values

v5-api
Dominik Nakamura 3 years ago
parent 0db0b0058b
commit 654bba1009
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -104,16 +104,16 @@ bitflags! {
const SCENE_ITEMS = 1 << 7;
/// Receive events in the `MediaInputs` category.
const MEDIA_INPUTS = 1 << 8;
/// Receive events from external OBS plugins.
const EXTERNAL_PLUGINS = 1 << 9;
/// `InputVolumeMeters` event (high-volume).
const INPUT_VOLUME_METERS = 1 << 9;
const INPUT_VOLUME_METERS = 1 << 16;
/// `InputActiveStateChanged` event (high-volume).
const INPUT_ACTIVE_STATE_CHANGED = 1 << 10;
const INPUT_ACTIVE_STATE_CHANGED = 1 << 17;
/// `InputShowStateChanged` event (high-volume).
const INPUT_SHOW_STATE_CHANGED = 1 << 11;
const INPUT_SHOW_STATE_CHANGED = 1 << 18;
/// `SceneItemTransformChanged` event (high-volume).
const SCENE_ITEM_TRANSFORM_CHANGED = 1 << 12;
/// Receive events from external OBS plugins.
const EXTERNAL_PLUGINS = 1 << 13;
const SCENE_ITEM_TRANSFORM_CHANGED = 1 << 19;
/// Receive all event categories.
const ALL = Self::GENERAL.bits
| Self::CONFIG.bits

@ -144,35 +144,37 @@ pub enum StatusCode {
GenericError = 205,
/// The request batch execution type is not supported.
UnsupportedRequestBatchExecutionType = 206,
/// A required request parameter is missing.
MissingRequestParameter = 300,
/// A required request field is missing.
MissingRequestField = 300,
/// The request does not have a valid `requestData` object.
MissingRequestData = 301,
/// Generic invalid request parameter message (comment required).
InvalidRequestParameter = 400,
/// A request parameter has the wrong data type.
InvalidRequestParameterType = 401,
/// A request parameter (float or int) is out of valid range.
RequestParameterOutOfRange = 402,
/// A request parameter (string or array) is empty and cannot be.
RequestParameterEmpty = 403,
/// There are too many request parameters (for example a request takes two optional values,
/// where only one is allowed at a time).
TooManyRequestParameters = 404,
/// Generic invalid request field message.
///
/// **Note:** A comment is required to be provided by obs-websocket.
InvalidRequestField = 400,
/// A request field has the wrong data type.
InvalidRequestFieldType = 401,
/// A request field (number) is outside of the allowed range.
RequestFieldOutOfRange = 402,
/// A request field (string or array) is empty and cannot be.
RequestFieldEmpty = 403,
/// There are too many request fields (eg. a request takes two optionals, where only one is
/// allowed at a time).
TooManyRequestFields = 404,
/// An output is running and cannot be in order to perform the request (generic).
OutputRunning = 500,
/// An output is not running and should be.
OutputNotRunning = 501,
/// An output is paused and should not be.
OutputPaused = 502,
/// An output is not paused and should be.
OutputNotPaused = 503,
/// An output is disabled and should not be.
OutputDisabled = 503,
OutputDisabled = 504,
/// Studio mode is active and cannot be.
StudioModeActive = 504,
StudioModeActive = 505,
/// Studio mode is not active and should be.
StudioModeNotActive = 505,
/// An output is not paused and should be
OutputNotPaused = 506,
StudioModeNotActive = 506,
/// The resource was not found.
ResourceNotFound = 600,
/// The resource already exists.

Loading…
Cancel
Save