dispose static method
Disposes the audio resource with the given resourceId
.
Returns true
if the resource is successfully disposed.
Otherwise, returns false
.
Implementation
static bool dispose(int resourceId) {
final holder = _resourceHolders.remove(resourceId);
if (holder == null) {
return false;
}
holder.dispose();
_finalizer.detach(holder.resource);
return true;
}