Menu

#18 TAudioFileFormat.getProperty() always returns null

open
nobody
5
2007-09-17
2007-09-17
No

The class org.tritonus.share.sampled.file.TAudioFileFormat overrides the properties() method of javax.sound.sampled.AudioFormat, but not the getProperty() method. The implementation of AudioFormat.getProperty() uses the internal (private) properties map to retrieve the properties. This has the effect that calling getProperty() on a class derived from TAudioFileFormat (e.g. on javazoom.spi.mpeg.sampled.file.MpegAudioFileFormat) always returns null.

Workaround:
use
audioFormat.properties().get(key)
instead of
audioFormat.getProperty(key)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB