Skip to content

Add() should accept IEnumerable #35

Closed
@swharden

Description

@swharden

Content originally posted by @shirok1 in #33:


An unnecessary type requirement in signature of sg.Add()

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions