You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
613 B

using System;
using System.Threading;
using System.Threading.Tasks;
namespace Discord.Audio
{
public abstract class AudioInStream : AudioStream
{
public abstract int AvailableFrames { get; }
public override bool CanRead => true;
public override bool CanWrite => true;
public abstract Task<RTPFrame> ReadFrameAsync(CancellationToken cancelToken);
public abstract bool TryReadFrame(CancellationToken cancelToken, out RTPFrame frame);
public override Task FlushAsync(CancellationToken cancelToken) { throw new NotSupportedException(); }
}
}