예제 #1
0
 /// <summary>
 /// Represents a <see cref="IGuild"/> voice connection.
 /// </summary>
 /// <param name="sock"><see cref="ClientSock"/></param>
 /// <param name="voiceChannel">Voice channel to connect to.</param>
 /// <param name="textChannel">Text channel this player is bound to.</param>
 public LavaPlayer(ClientSock sock, IVoiceChannel voiceChannel, ITextChannel textChannel)
 {
     _sock        = sock;
     VoiceChannel = voiceChannel;
     TextChannel  = textChannel;
     Queue        = new DefaultQueue <LavaTrack>(69);
 }
예제 #2
0
 /// <summary>
 ///     Represents a <see cref="IGuild" /> voice connection.
 /// </summary>
 /// <param name="lavaSocket">
 ///     <see cref="LavaSocket" />
 /// </param>
 /// <param name="voiceChannel">Voice channel to connect to.</param>
 /// <param name="textChannel">Text channel this player is bound to.</param>
 public LavaPlayer(LavaSocket lavaSocket, IVoiceChannel voiceChannel, ITextChannel textChannel)
 {
     _lavaSocket  = lavaSocket;
     VoiceChannel = voiceChannel;
     TextChannel  = textChannel;
     Queue        = new DefaultQueue <LavaTrack>();
     _equalizer   = new Dictionary <int, EqualizerBand>(15);
 }
예제 #3
0
 /// <summary>
 ///     Represents a <see cref="IGuild" /> voice connection.
 /// </summary>
 /// <param name="lavaSocket">
 ///     <see cref="LavaSocket" />
 /// </param>
 /// <param name="voiceChannel">Voice channel to connect to.</param>
 /// <param name="textChannel">Text channel this player is bound to.</param>
 public LavaPlayer(LavaSocket lavaSocket, IVoiceChannel voiceChannel, ITextChannel textChannel)
 {
     _lavaSocket  = lavaSocket;
     VoiceChannel = voiceChannel;
     TextChannel  = textChannel;
     Queue        = new DefaultQueue <IQueueable>(69);
     _equalizer   = new List <EqualizerBand>(15);
 }