Copy a AudioSourceChannelInfo?


#1

Can I safely copy an AudioSourceChannelInfo instance? I want a new class that starts with a pointer to the same buffer and the start and sample counts. I’ll locally offset them as I move through the buffer.

Edit - maybe that’s not what I want anyway. I’m starting with two AudioSourceChannelInfo instances (set from a FIFO) and I want to set two other AudioSourceChannelInfo instances to match, so it’s not a copy constructor I want, it’s an assignment operation, as in:

localInfo1 = inInfo1;

Bruce


#2

Yes, it’s a POD struct, so there’d be no problem copying it.