static class SoundSystem.HandlerImpl extends java.lang.Object implements SoundSystem.IHandler
Modifier and Type | Field and Description |
---|---|
private java.util.Set<SoundSource> |
activeChannels |
private int |
limit |
Constructor and Description |
---|
HandlerImpl(int p_i50804_1_) |
Modifier and Type | Method and Description |
---|---|
SoundSource |
acquire() |
void |
cleanup() |
int |
getMaxCount() |
int |
getUsedCount() |
boolean |
release(SoundSource p_216396_1_) |
private final int limit
private final java.util.Set<SoundSource> activeChannels
@Nullable public SoundSource acquire()
acquire
in interface SoundSystem.IHandler
public boolean release(SoundSource p_216396_1_)
release
in interface SoundSystem.IHandler
public void cleanup()
cleanup
in interface SoundSystem.IHandler
public int getMaxCount()
getMaxCount
in interface SoundSystem.IHandler
public int getUsedCount()
getUsedCount
in interface SoundSystem.IHandler