using System; using System.Runtime.InteropServices.JavaScript; namespace Susurrus.WebAudio { /// /// A sound held as a browser AudioBuffer, which the browser frees once nothing here refers to it. /// public class WebAudioSound : Sound { /// /// Gets the browser's buffer of samples, or null for a sound with none, which no voice has anything to play. /// public JSObject Buffer { get; } public WebAudioSound(TimeSpan duration, int channelCount, JSObject buffer) : base(duration, channelCount) { Buffer = buffer; } } }