@Environment(value=CLIENT) public class SoundEngine extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SoundEngine.RunMode |
(package private) static interface |
SoundEngine.SourceSet |
(package private) static class |
SoundEngine.SourceSetImpl |
Modifier and Type | Field and Description |
---|---|
private long |
contextPointer |
private long |
devicePointer |
private static SoundEngine.SourceSet |
EMPTY_SOURCE_SET |
private SoundListener |
listener |
private static Logger |
LOGGER |
private SoundEngine.SourceSet |
staticSources |
private SoundEngine.SourceSet |
streamingSources |
Constructor and Description |
---|
SoundEngine() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Source |
createSource(SoundEngine.RunMode mode) |
String |
getDebugString() |
SoundListener |
getListener() |
private int |
getMonoSourceCount() |
void |
init() |
private static long |
openDevice() |
void |
release(Source source) |
private static final Logger LOGGER
private static final SoundEngine.SourceSet EMPTY_SOURCE_SET
private long devicePointer
private long contextPointer
private SoundEngine.SourceSet streamingSources
private SoundEngine.SourceSet staticSources
private final SoundListener listener
public void init()
private int getMonoSourceCount()
private static long openDevice()
public void close()
public SoundListener getListener()
@Nullable public Source createSource(SoundEngine.RunMode mode)
public void release(Source source)
public String getDebugString()