public class FlacOggFile extends FlacFile
info, otherMetadata, tags| Constructor and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public FlacOggFile(File f) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic FlacOggFile(OggFile ogg) throws IOException
IOExceptionpublic FlacOggFile(OggPacketReader r) throws IOException
IOExceptionpublic FlacOggFile(OutputStream out)
public FlacOggFile(OutputStream out, FlacInfo info, FlacTags tags)
public FlacOggFile(OutputStream out, int sid, FlacInfo info, FlacTags tags)
public FlacFirstOggPacket getFirstPacket()
public FlacAudioFrame getNextAudioPacket() throws IOException
getNextAudioPacket in class FlacFileIOExceptionpublic void skipToGranule(long granulePosition)
throws IOException
skipToGranule in class FlacFileIOExceptionpublic int getSid()
public void writeAudioData(FlacAudioFrame data)
close() to do that,
because we assume you'll still be populating
the Info/Comment/Setup objectspublic void close()
throws IOException
close in class FlacFileIOExceptionpublic OggFile getOggFile()
Copyright © 2014. All rights reserved.