protected override async Task DoPrepareAsync()
        {
            await _clip.PrepareAsync();

            var cts = new CancellationTokenSource();

            while (true)
            {
                var buffer    = new byte[2880];
                var byteCount = await _clip.ReadAsync(buffer, 0, buffer.Length, cts.Token);

                if (byteCount == 0)
                {
                    break;
                }

                await _stream.WriteAsync(buffer, 0, byteCount, cts.Token);
            }
        }
 protected async override Task DoPrepareAsync()
 {
     await _clip.PrepareAsync();
 }
Exemple #3
0
 protected override Task DoPrepareAsync()
 => _clip.PrepareAsync();
Exemple #4
0
        protected async override Task DoPrepareAsync()
        {
            await _clip.PrepareAsync();

            _bufferStream = new MemoryStream();
        }