We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a6213e commit 14d1f1fCopy full SHA for 14d1f1f
JustAnotherVoiceChat.Server.Wrapper/src/Elements/Tasks/PositionalVoiceTask.cs
@@ -31,14 +31,21 @@ namespace JustAnotherVoiceChat.Server.Wrapper.Elements.Tasks
31
{
32
public class PositionalVoiceTask<TClient> : IVoiceTask<TClient> where TClient : IVoiceClient
33
34
+ private readonly int _sleepTime;
35
+
36
+ public PositionalVoiceTask(int sleepTime = 125)
37
+ {
38
+ _sleepTime = sleepTime;
39
+ }
40
41
public virtual int RunVoiceTask(IVoiceServer<TClient> server)
42
43
foreach (var client in server.GetClients())
44
45
client.SetListeningPositionToCurrentPosition();
46
}
47
- return 125;
48
+ return _sleepTime;
49
50
51
public virtual void Dispose()
0 commit comments