javazoom.spi.vorbis.sampled.file
Class VorbisAudioFileFormat
java.lang.Object
javax.sound.sampled.AudioFileFormat
org.tritonus.share.sampled.file.TAudioFileFormat
javazoom.spi.vorbis.sampled.file.VorbisAudioFileFormat
public class VorbisAudioFileFormat
- extends org.tritonus.share.sampled.file.TAudioFileFormat
- Author:
- JavaZOOM
Nested classes/interfaces inherited from class javax.sound.sampled.AudioFileFormat |
javax.sound.sampled.AudioFileFormat.Type |
Constructor Summary |
VorbisAudioFileFormat(javax.sound.sampled.AudioFileFormat.Type type,
javax.sound.sampled.AudioFormat audioFormat,
int nLengthInFrames,
int nLengthInBytes,
java.util.Map properties)
Contructor. |
Method Summary |
java.util.Map |
properties()
Ogg Vorbis audio file format parameters. |
Methods inherited from class org.tritonus.share.sampled.file.TAudioFileFormat |
setProperty |
Methods inherited from class javax.sound.sampled.AudioFileFormat |
getByteLength, getFormat, getFrameLength, getProperty, getType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VorbisAudioFileFormat
public VorbisAudioFileFormat(javax.sound.sampled.AudioFileFormat.Type type,
javax.sound.sampled.AudioFormat audioFormat,
int nLengthInFrames,
int nLengthInBytes,
java.util.Map properties)
- Contructor.
- Parameters:
type
- audioFormat
- nLengthInFrames
- nLengthInBytes
-
properties
public java.util.Map properties()
- Ogg Vorbis audio file format parameters.
Some parameters might be unavailable. So availability test is required before reading any parameter.
AudioFileFormat parameters.
- duration [Long], duration in microseconds.
- title [String], Title of the stream.
- author [String], Name of the artist of the stream.
- album [String], Name of the album of the stream.
- date [String], The date (year) of the recording or release of the stream.
- copyright [String], Copyright message of the stream.
- comment [String], Comment of the stream.
Ogg Vorbis parameters.
- ogg.length.bytes [Integer], length in bytes.
- ogg.bitrate.min.bps [Integer], minimum bitrate.
- ogg.bitrate.nominal.bps [Integer], nominal bitrate.
- ogg.bitrate.max.bps [Integer], maximum bitrate.
- ogg.channels [Integer], number of channels 1 : mono, 2 : stereo.
- ogg.frequency.hz [Integer], sampling rate in hz.
- ogg.version [Integer], version.
- ogg.serial [Integer], serial number.
- ogg.comment.track [String], track number.
- ogg.comment.genre [String], genre field.
- ogg.comment.encodedby [String], encoded by field.
- ogg.comment.ext [String], extended comments (indexed):
For instance :
ogg.comment.ext.1=Something
ogg.comment.ext.2=Another comment
- Overrides:
properties
in class org.tritonus.share.sampled.file.TAudioFileFormat
JavaZOOM 1999-2008