public final class EncodedSound extends java.lang.Object implements IEncodedResource
| Constructor and Description |
|---|
EncodedSound(IEncodedResource encodedSound,
nl.weeaboo.vn.sound.desc.ISoundDefinition def) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
nl.weeaboo.vn.impl.sound.desc.SoundDefinition |
getDef()
Returns the
ISoundDefinition accompanying the sound. |
byte[] |
readBytes()
Reads and returns the encoded bytes representing the resource.
|
void |
setDef(nl.weeaboo.vn.impl.sound.desc.SoundDefinition def) |
public EncodedSound(IEncodedResource encodedSound, nl.weeaboo.vn.sound.desc.ISoundDefinition def)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic byte[] readBytes()
throws java.io.IOException
IEncodedResourcereadBytes in interface IEncodedResourcejava.io.IOException - If an I/O error occurs while trying to read the encoded data.public nl.weeaboo.vn.impl.sound.desc.SoundDefinition getDef()
ISoundDefinition accompanying the sound.public void setDef(nl.weeaboo.vn.impl.sound.desc.SoundDefinition def)
getDef()