public class Sound
extends java.lang.Object
Constructor and Description |
---|
Sound(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
int |
approximateLengthMs() |
int |
channelCount() |
protected void |
finalize()
Ensures the underlying native object destruction
|
int |
frequency() |
long |
handle()
Gets the pointer/address to the underlying native object
|
int |
lengthSamples() |
java.lang.String |
path()
Gets the path to the file this Sound was created from
|
int |
pause() |
boolean |
repeat() |
long |
soundHandle()
Gets the underlying sound handler ID
Internally assigned on successful addSound invocation and invalidated on removeSound.
|
public Sound(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public long soundHandle()
public java.lang.String path()
public int frequency()
public int lengthSamples()
public int approximateLengthMs()
public int channelCount()
public boolean repeat()
public int pause()