An unnecessary type requirement in signature of sg.Add()
List<double>.AddRange accepts an IEnumerable<double> as the parameter. However, sg.Add() asks for an explicit double[], which means that I can't directly use the List<double> but have to do a .ToArray() first, which obvious will waste the memory as large as the audio itself.
Content originally posted by @shirok1 in #33:
An unnecessary type requirement in signature of
sg.Add()
List<double>.AddRange
accepts anIEnumerable<double>
as the parameter. However,sg.Add()
asks for an explicitdouble[]
, which means that I can't directly use theList<double>
but have to do a.ToArray()
first, which obvious will waste the memory as large as theaudio
itself.