| @@ -15,7 +15,7 @@ namespace Discord.Audio.Streams | |||||
| private int _partialFramePos; | private int _partialFramePos; | ||||
| private ushort _seq; | private ushort _seq; | ||||
| private uint _timestamp; | private uint _timestamp; | ||||
| public OpusEncodeStream(AudioStream next, int bitrate, AudioApplication application, int packetLoss) | public OpusEncodeStream(AudioStream next, int bitrate, AudioApplication application, int packetLoss) | ||||
| { | { | ||||
| _next = next; | _next = next; | ||||
| @@ -92,7 +92,11 @@ namespace Discord.Audio.Streams | |||||
| base.Dispose(disposing); | base.Dispose(disposing); | ||||
| if (disposing) | if (disposing) | ||||
| { | |||||
| _encoder.Dispose(); | _encoder.Dispose(); | ||||
| _next.Dispose(); //Try this | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||