mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
b46fd7b2ad
commit
d755c1d526
2 changed files with 22 additions and 18 deletions
|
@ -8,6 +8,7 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using FFMpegCore.Extend;
|
||||||
|
|
||||||
namespace FFMpegCore.Test
|
namespace FFMpegCore.Test
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
using FFMpegCore.Pipes;
|
using System.IO;
|
||||||
using System.IO;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using FFMpegCore.Pipes;
|
||||||
|
|
||||||
|
namespace FFMpegCore.Extend
|
||||||
|
{
|
||||||
public class PcmAudioSampleWrapper : IAudioSample
|
public class PcmAudioSampleWrapper : IAudioSample
|
||||||
{
|
{
|
||||||
//This could actually be short or int, but copies would be inefficient.
|
//This could actually be short or int, but copies would be inefficient.
|
||||||
|
@ -25,3 +27,4 @@ public async Task SerializeAsync(Stream stream, CancellationToken token)
|
||||||
await stream.WriteAsync(_sample, 0, _sample.Length, token);
|
await stream.WriteAsync(_sample, 0, _sample.Length, token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue