Class: OBS::WebSocket::Protocol::Events::SourceVolumeChanged

Inherits:
OBS::WebSocket::Protocol::Event show all
Defined in:
lib/obs/websocket/protocol.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from OBS::WebSocket::Protocol::Event

create, #initialize, json_name, #rec_timecode, #stream_timecode, #to_h, #update_type

Constructor Details

This class inherits a constructor from OBS::WebSocket::Protocol::Event

Instance Attribute Details

#source_nameString (readonly)

Returns sourceName field.

Returns:

  • (String)

    sourceName field



381
# File 'lib/obs/websocket/protocol.rb', line 381

def source_name; get_field("sourceName", Types::String); end

#volumeFloat (readonly)

Returns volume field.

Returns:

  • (Float)

    volume field



384
# File 'lib/obs/websocket/protocol.rb', line 384

def volume; get_field("volume", Types::Float); end

#volume_dbFloat (readonly)

Returns volumeDb field.

Returns:

  • (Float)

    volumeDb field



387
# File 'lib/obs/websocket/protocol.rb', line 387

def volume_db; get_field("volumeDb", Types::Float); end