|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gagravarr.flac.FlacFile
org.gagravarr.flac.FlacOggFile
public class FlacOggFile
This lets you work with FLAC files that are contained in an Ogg Stream
Field Summary |
---|
Fields inherited from class org.gagravarr.flac.FlacFile |
---|
info, otherMetadata, tags |
Constructor Summary | |
---|---|
FlacOggFile(File f)
Opens the given file for reading |
|
FlacOggFile(OggFile ogg)
Opens the given file for reading |
|
FlacOggFile(OggPacketReader r)
Loads a Vorbis File from the given packet reader. |
|
FlacOggFile(OutputStream out)
Opens for writing. |
|
FlacOggFile(OutputStream out,
FlacInfo info,
FlacTags tags)
Opens for writing, based on the settings from a pre-read file. |
|
FlacOggFile(OutputStream out,
int sid,
FlacInfo info,
FlacTags tags)
Opens for writing, based on the settings from a pre-read file, with a specific Steam ID (SID). |
Method Summary | |
---|---|
void |
close()
In Reading mode, will close the underlying ogg file and free its resources. |
FlacFirstOggPacket |
getFirstPacket()
Returns the first Ogg Packet, which has some metadata in it |
FlacAudioFrame |
getNextAudioPacket()
|
OggFile |
getOggFile()
Returns the underlying Ogg File instance |
int |
getSid()
Returns the Ogg Stream ID |
void |
skipToGranule(long granulePosition)
Skips the audio data to the next packet with a granule of at least the given granule position. |
void |
writeAudioData(FlacAudioFrame data)
Buffers the given audio ready for writing out. |
Methods inherited from class org.gagravarr.flac.FlacFile |
---|
getInfo, getTags, open, open, open |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlacOggFile(File f) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public FlacOggFile(OggFile ogg) throws IOException
IOException
public FlacOggFile(OggPacketReader r) throws IOException
IOException
public FlacOggFile(OutputStream out)
public FlacOggFile(OutputStream out, FlacInfo info, FlacTags tags)
public FlacOggFile(OutputStream out, int sid, FlacInfo info, FlacTags tags)
Method Detail |
---|
public FlacFirstOggPacket getFirstPacket()
public FlacAudioFrame getNextAudioPacket() throws IOException
getNextAudioPacket
in class FlacFile
IOException
public void skipToGranule(long granulePosition) throws IOException
skipToGranule
in class FlacFile
IOException
public int getSid()
public void writeAudioData(FlacAudioFrame data)
close()
to do that,
because we assume you'll still be populating
the Info/Comment/Setup objects
public void close() throws IOException
close
in class FlacFile
IOException
public OggFile getOggFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |