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
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)
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 objectspublic void close() throws IOException
close
in class FlacFile
IOException
public OggFile getOggFile()
Copyright © 2014. All rights reserved.