Resources belonging to a Sound that must be released when the Sound is
garbage collected without an explicit cleanup() call. The record is a plain
data bag with no back-references to the Sound or its Playbacks — a
FinalizationRegistry strongly retains its held value, so holding the Sound
itself would prevent the target from ever becoming collectable.
Resources belonging to a Sound that must be released when the Sound is garbage collected without an explicit cleanup() call. The record is a plain data bag with no back-references to the Sound or its Playbacks — a FinalizationRegistry strongly retains its held value, so holding the Sound itself would prevent the target from ever becoming collectable.