public class FlacOggFile extends FlacFile implements OggAudioHeaders
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,
FlacOggInfo info,
FlacTags tags)
Opens for writing, based on the settings
from a pre-read file.
|
FlacOggFile(OutputStream out,
int sid,
FlacOggInfo 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
|
FlacOggInfo |
getInfo()
Return the Ogg-specific version of the Flac Info
|
FlacAudioFrame |
getNextAudioPacket() |
OggFile |
getOggFile()
Returns the underlying Ogg File instance
|
OggAudioSetupHeader |
getSetup()
Flac doesn't have setup packets per-se, so return null
|
int |
getSid()
Returns the Ogg Stream ID
|
OggStreamIdentifier.OggStreamType |
getType()
This is a Flac-in-Ogg file
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTags
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, FlacOggInfo info, FlacTags tags)
public FlacOggFile(OutputStream out, int sid, FlacOggInfo 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()
getSid
in interface OggAudioHeaders
public OggStreamIdentifier.OggStreamType getType()
getType
in interface OggAudioHeaders
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 interface Closeable
close
in interface AutoCloseable
close
in class FlacFile
IOException
public FlacOggInfo getInfo()
getInfo
in interface OggAudioHeaders
getInfo
in class FlacFile
public OggAudioSetupHeader getSetup()
getSetup
in interface OggAudioHeaders
public OggFile getOggFile()
Copyright © 2015. All rights reserved.