Browse Source

Minor edit

tags/docs-0.9
RogueException 9 years ago
parent
commit
cd37f55816
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/Discord.Net/WebSockets/Voice/VoiceBuffer.cs

+ 5
- 5
src/Discord.Net/WebSockets/Voice/VoiceBuffer.cs View File

@@ -5,11 +5,6 @@ namespace Discord.WebSockets.Voice
{ {
internal class VoiceBuffer : IDiscordVoiceBuffer internal class VoiceBuffer : IDiscordVoiceBuffer
{ {
public int FrameSize => _frameSize;
public int FrameCount => _frameCount;
public ushort ReadPos => _readCursor;
public ushort WritePos => _readCursor;

private readonly int _frameSize, _frameCount, _bufferSize; private readonly int _frameSize, _frameCount, _bufferSize;
private readonly byte[] _buffer; private readonly byte[] _buffer;
private readonly byte[] _blankFrame; private readonly byte[] _blankFrame;
@@ -17,6 +12,11 @@ namespace Discord.WebSockets.Voice
private ManualResetEventSlim _underflowEvent, _notOverflowEvent; private ManualResetEventSlim _underflowEvent, _notOverflowEvent;
private bool _isClearing; private bool _isClearing;


public int FrameSize => _frameSize;
public int FrameCount => _frameCount;
public ushort ReadPos => _readCursor;
public ushort WritePos => _readCursor;

public VoiceBuffer(int frameCount, int frameSize) public VoiceBuffer(int frameCount, int frameSize)
{ {
_frameSize = frameSize; _frameSize = frameSize;


Loading…
Cancel
Save