public final class Sound extends RecordContainer
_children
Modifier | Constructor and Description |
---|---|
protected |
Sound(byte[] source,
int start,
int len)
Set things up, and find our more interesting children
|
Modifier and Type | Method and Description |
---|---|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4)
that this class handles.
|
byte[] |
getSoundData()
The sound data
|
java.lang.String |
getSoundName()
Name of the sound (e.g.
|
java.lang.String |
getSoundType()
Type of the sound (e.g.
|
void |
writeOut(java.io.OutputStream out)
Have the contents printer out into an OutputStream, used when
writing a file back out to disk.
|
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, getGenericProperties, handleParentAwareRecords, isAnAtom, removeChild, setChildRecord, writeOut
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
protected Sound(byte[] source, int start, int len)
source
- the source data as a byte array.start
- the start offset into the byte array.len
- the length of the slice in the byte array.public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.lang.String getSoundName()
public java.lang.String getSoundType()
public byte[] getSoundData()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.