diff options
author | Robert Adam <dev@robert-adam.de> | 2020-03-25 21:28:54 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-04-16 10:29:49 +0300 |
commit | 8aadee917dea7a256b283585d14e1d0f0080fe27 (patch) | |
tree | c2282077f09b1083535ea1ed07439c52288b33d8 /src/murmur/Server.h | |
parent | dcd5842008ff3123484edffc84d619a559824334 (diff) |
Feature: Channel Listeners
This implements #3319 by allowing users to "listen" to a channel they
have not joined. Doing so will place a "listener proxy" (in other
software this is sometimes known as a "phantom") in that channel which
will look like a normal user except that it'll have the same name as the
user listening to that channel and an ear-icon instead of the normal
avatar-icon. It will also always show a muted-icon next to it.
If a listener proxy is in a channel, the server will route all audio
packets from that channel to the user the proxy belongs to (as if that
user was in the channel). Note though that the opposite of this is not
true: The users in the channel will not hear audio from the listening
user unless that user decides to join the channel.
Furthermore it is possible to set a local volume adjustment for each
individual proxy that will be applied to all audio that is received
through it.
Diffstat (limited to 'src/murmur/Server.h')
-rw-r--r-- | src/murmur/Server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/murmur/Server.h b/src/murmur/Server.h index 311054e7d..cedc1281d 100644 --- a/src/murmur/Server.h +++ b/src/murmur/Server.h @@ -340,6 +340,8 @@ class Server : public QThread { void disconnectListener(QObject *p); void setTempGroups(int userid, int sessionId, Channel *cChannel, const QStringList &groups); void clearTempGroups(User *user, Channel *cChannel = NULL, bool recurse = true); + void startListeningToChannel(ServerUser *user, Channel *cChannel); + void stopListeningToChannel(ServerUser *user, Channel *cChannel); signals: void registerUserSig(int &, const QMap<int, QString> &); void unregisterUserSig(int &, int); |