Object pool for Sources

I’d like to make an object pool of sources and as they get recycled, detach and reattach them to existing buffers on the fly. Anyone see any problems with that?

Personally I don’t see any issue but watch out for how you determine when the source should be recycled. Ideally you would know in your game engine when the source is out of range and can be recycled. I would advise against using either finalizable objects or weak references for determining when your sources are reclaimable as these mechanisms require the garbage collector to run.