module Obsctl::OBS::Requests::Audio

Overview

Request names and payload builders for OBS audio input operations.

Defined in:

obsctl/obs/requests/audio.cr

Constant Summary

GET_INPUT_LIST = "GetInputList"
GET_INPUT_MUTE = "GetInputMute"
GET_INPUT_VOLUME = "GetInputVolume"
SET_INPUT_MUTE = "SetInputMute"
SET_INPUT_VOLUME = "SetInputVolume"
TOGGLE_INPUT_MUTE = "ToggleInputMute"

Class Method Summary

Class Method Detail

def self.input_name(name : String) : JSON::Any #

Builds payload for requests that target one input by OBS name.


[View source]
def self.set_mute(name : String, muted : Bool) : JSON::Any #

Builds payload for SetInputMute.


[View source]
def self.set_volume(name : String, multiplier : Float64) : JSON::Any #

Builds payload for SetInputVolume using obs-websocket multiplier units.


[View source]