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, waitgetTagspublic 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, 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 FlacFileIOExceptionpublic void skipToGranule(long granulePosition)
throws IOException
skipToGranule in class FlacFileIOExceptionpublic int getSid()
getSid in interface OggAudioHeaderspublic OggStreamIdentifier.OggStreamType getType()
getType in interface OggAudioHeaderspublic 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 Closeableclose in interface AutoCloseableclose in class FlacFileIOExceptionpublic FlacOggInfo getInfo()
getInfo in interface OggAudioHeadersgetInfo in class FlacFilepublic OggAudioSetupHeader getSetup()
getSetup in interface OggAudioHeaderspublic OggFile getOggFile()
Copyright © 2021. All rights reserved.