using System.Runtime.InteropServices.JavaScript;
using System.Threading.Tasks;
namespace Susurrus.WebAudio
{
///
/// A file the browser is decoding. The bytes stay for the decoder in managed code to fall back on if the browser
/// can't.
///
public class PendingDecode
{
public SoundLoad Load { get; }
public Task Decoding { get; }
public byte[] Encoded { get; }
public PendingDecode(SoundLoad load, Task decoding, byte[] encoded)
{
Load = load;
Decoding = decoding;
Encoded = encoded;
}
}
}