@Environment(value=CLIENT) static class SoundEngine.SourceSetImpl extends Object implements SoundEngine.SourceSet
Modifier and Type | Field and Description |
---|---|
private int |
maxSourceCount |
private Set<Source> |
sources |
Constructor and Description |
---|
SourceSetImpl(int maxSourceCount) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Source |
createSource() |
int |
getMaxSourceCount() |
int |
getSourceCount() |
boolean |
release(Source source) |
@Nullable public Source createSource()
createSource
in interface SoundEngine.SourceSet
public boolean release(Source source)
release
in interface SoundEngine.SourceSet
public void close()
close
in interface SoundEngine.SourceSet
public int getMaxSourceCount()
getMaxSourceCount
in interface SoundEngine.SourceSet
public int getSourceCount()
getSourceCount
in interface SoundEngine.SourceSet