MOON
Server: Apache
System: Linux mail.espica.me 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: golnoorlig (1005)
PHP: 8.2.31
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/wireplumber/scripts/lib/audio-group-utils.lua
-- WirePlumber

-- Copyright © 2024 Collabora Ltd.
--    @author Julian Bouzas <julian.bouzas@collabora.com>

-- SPDX-License-Identifier: MIT

-- Script is a Lua Module of audio group Lua utility functions

local module = {
  node_groups = {},
}

function module.set_audio_group (stream_node, audio_group)
  module.node_groups [stream_node.id] = audio_group
end

function module.get_audio_group (stream_node)
  return module.node_groups [stream_node.id]
end

function module.contains_audio_group (audio_group)
  for k, v in pairs(module.node_groups) do
    if v == group then
      return true
    end
  end
  return false
end

return module