mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Events: Fix conversion warning
Thanks micolous for the report.
This commit is contained in:
parent
c73a153c9a
commit
ea948766a5
@ -145,8 +145,8 @@ void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
|||||||
long long tracks = calldata_int(data, "mixers");
|
long long tracks = calldata_int(data, "mixers");
|
||||||
|
|
||||||
json inputAudioTracks;
|
json inputAudioTracks;
|
||||||
for (size_t i = 0; i < MAX_AUDIO_MIXES; i++) {
|
for (long long i = 0; i < MAX_AUDIO_MIXES; i++) {
|
||||||
inputAudioTracks[std::to_string(i + 1)] = (bool)((1 << i) & tracks);
|
inputAudioTracks[std::to_string(i + 1)] = (bool)((tracks >> i) & 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
|
Loading…
Reference in New Issue
Block a user