mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
This is probably one of the most requested features for obs-websocket. This currently works by firing an event to all explicit subscribers with an array of all active audio sources every **60 milliseconds.** The `inputLevelsMul` field follows this data format: Base: [Channel, Channel] Channel: [magnitude (mul), peak (mul), input_peak (mul)] *Not Muted* *Muted* Example: [[0.3, 0.5, 0.9], [0.0, 0.0, 0.0]] (input_peak is the actual peak value, before volume adjustment.) You may notice that the values are only in mul. This is because we are trying to cut down on bandwidth. dB values can be calculated using this formula: `dB = 20.0 * log10(mul)` |
||
---|---|---|
.. | ||
eventhandler | ||
forms | ||
requesthandler | ||
utils | ||
websocketserver | ||
Config.cpp | ||
Config.h | ||
obs-websocket.cpp | ||
obs-websocket.h | ||
plugin-macros.h.in | ||
WebSocketApi.cpp | ||
WebSocketApi.h |