Esempio n. 1
0
 /// <summary>
 /// Processes a Gamepacket into audio data in format Int16
 /// </summary>
 /// <param name="packet">GamePacket to process</param>
 /// <param name="info">data info</param>
 /// <param name="out_audioData">output array on which data will be written</param>
 /// <param name="out_audioDataOffset">output array start index</param>
 /// <returns>total number of bytes written</returns>
 public abstract int FromPacketToAudioDataInt16(BytePacket packet, ref VoicePacketInfo info, byte[] out_audioData, int out_audioDataOffset);
Esempio n. 2
0
 /// <summary>
 /// Processes a Gamepacket into audio data in format Single
 /// </summary>
 /// <param name="packet">GamePacket to process</param>
 /// <param name="info">data info</param>
 /// <param name="out_audioData">output array on which data will be written</param>
 /// <param name="out_audioDataOffset">output array start index</param>
 /// <returns>total number of floats written</returns>
 public abstract int FromPacketToAudioData(BytePacket packet, ref VoicePacketInfo info, float[] out_audioData, int out_audioDataOffset);
Esempio n. 3
0
 /// <summary>
 /// Processes audio data in format Int16 into a GamePacket
 /// </summary>
 /// <param name="audioData">audio data to process</param>
 /// <param name="audioDataOffset">audio data startIndex</param>
 /// <param name="audioDataCount">number of bytes to process</param>
 /// <param name="info">data info</param>
 /// <param name="output">gamepacket on which data will be written</param>
 public abstract void FromAudioDataToPacketInt16(byte[] audioData, int audioDataOffset, int audioDataCount, ref VoicePacketInfo info, BytePacket output);
Esempio n. 4
0
 /// <summary>
 /// Processes audio data in format Int16 and plays it
 /// </summary>
 /// <param name="audioData">audio data to process</param>
 /// <param name="audioDataOffset">audio data start index</param>
 /// <param name="audioDataCount">audio data amount to process</param>
 /// <param name="info">data info</param>
 public abstract void ReceiveAudioDataInt16(byte[] audioData, int audioDataOffset, int audioDataCount, VoicePacketInfo info);
Esempio n. 5
0
 /// <summary>
 /// Processes audio data in format Single and plays it
 /// </summary>
 /// <param name="audioData">audio data to process</param>
 /// <param name="audioDataOffset">audio data start index</param>
 /// <param name="audioDataCount">audio data amount to process</param>
 /// <param name="info">data info</param>
 public abstract void ReceiveAudioData(float[] audioData, int audioDataOffset, int audioDataCount, VoicePacketInfo info);
Esempio n. 6
0
 /// <summary>
 /// Sends a packet to a list of clients
 /// </summary>
 /// <param name="data">GamePacket that stores the data to send</param>
 /// <param name="info">data info</param>
 /// <param name="receiversIds">list of receivers ids</param>
 public abstract void SendToAll(BytePacket data, VoicePacketInfo info, List <ulong> receiversIds);