Format the project with 'dotnet format' (#2551)

* Sync and Re-Format

* Fix Title string.

* Fix indentation.
This commit is contained in:
NaN
2023-02-13 14:45:59 -03:00
committed by GitHub
parent 71e9ecb21e
commit 257f246d1d
401 changed files with 3178 additions and 2671 deletions

View File

@@ -6,4 +6,4 @@ namespace Discord.Audio
Music,
Mixed
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;
using System.Threading.Tasks;
@@ -9,7 +9,7 @@ namespace Discord.Audio
public abstract int AvailableFrames { get; }
public override bool CanRead => true;
public override bool CanWrite => true;
public override bool CanWrite => true;
public abstract Task<RTPFrame> ReadFrameAsync(CancellationToken cancelToken);
public abstract bool TryReadFrame(CancellationToken cancelToken, out RTPFrame frame);

View File

@@ -12,7 +12,7 @@ namespace Discord.Audio
public override bool CanWrite => false;
/// <exception cref="InvalidOperationException">This stream does not accept headers.</exception>
public virtual void WriteHeader(ushort seq, uint timestamp, bool missed) =>
public virtual void WriteHeader(ushort seq, uint timestamp, bool missed) =>
throw new InvalidOperationException("This stream does not accept headers.");
public override void Write(byte[] buffer, int offset, int count)
{
@@ -31,7 +31,7 @@ namespace Discord.Audio
/// <inheritdoc />
/// <exception cref="NotSupportedException">Reading stream length is not supported.</exception>
public override long Length =>
public override long Length =>
throw new NotSupportedException();
/// <inheritdoc />

View File

@@ -15,4 +15,4 @@ namespace Discord.Audio
Missed = missed;
}
}
}
}