Fixed around 140 wrong namings and other refactorings which were marked as warnings

This commit is contained in:
Kwoth
2022-01-08 11:51:41 +01:00
parent a6330119e8
commit 2ce3262d59
109 changed files with 698 additions and 760 deletions

View File

@@ -64,9 +64,7 @@ namespace Ayu.Discord.Voice
}
public int SetControl(OpusCtl ctl, int value)
{
return LibOpus.EncoderCtl(_encoderPtr, ctl, value);
}
=> LibOpus.EncoderCtl(_encoderPtr, ctl, value);
public int Encode(Span<byte> input, byte[] output)
{
@@ -84,9 +82,7 @@ namespace Ayu.Discord.Voice
public void Dispose()
{
LibOpus.DestroyEncoder(_encoderPtr);
}
=> LibOpus.DestroyEncoder(_encoderPtr);
}
public enum OpusCtl