AESAudioMetadata.FormatRegion rgn = (AESAudioMetadata.FormatRegion) flist.get(0); int bitDepth = rgn.getBitDepth (); double sampleRate = rgn.getSampleRate (); int wordSize = rgn.getWordSize (); String[] bitRed = rgn.getBitrateReduction ();
flist.get(0); int bitDepth = rgn.getBitDepth (); double sampleRate = rgn.getSampleRate (); int wordSize = rgn.getWordSize (); String[] bitRed = rgn.getBitrateReduction (); // Build a FormatRegion subtree if at least one piece of data
AESAudioMetadata.FormatRegion rgn = (AESAudioMetadata.FormatRegion) flist.get(0); int bitDepth = rgn.getBitDepth (); double sampleRate = rgn.getSampleRate (); int wordSize = rgn.getWordSize (); String[] bitRed = rgn.getBitrateReduction ();
_sampleRate = _curFormatRegion.getSampleRate ();
/** Returns the bitrate reduction (compression information). * This will be an array of seven strings (which may be * empty, but should never be null) interpreted as follows: * <ul> * <li>0: codecName * <li>1: codecNameVersion * <li>2: codecCreatorApplication * <li>3: codecCreatorApplicationVersion * <li>4: codecQuality * <li>5: dataRate * <li>6: dataRateMode * </ul> */ public String[] getBitrateReduction () { return _curFormatRegion.getBitrateReduction(); }
/** Sets the bitrate reduction (compression type). */ public void setBitrateReduction (String codecName, String codecNameVersion, String codecCreatorApplication, String codecCreatorApplicationVersion, String codecQuality, String dataRate, String dataRateMode) { _curFormatRegion.setBitrateReduction (codecName, codecNameVersion, codecCreatorApplication, codecCreatorApplicationVersion, codecQuality, dataRate, dataRateMode); }
public double getSampleRate () { return _curFormatRegion.getSampleRate (); }
/** Sets the word size. */ public void setWordSize (int wordSize) { _curFormatRegion.setWordSize (wordSize); }
/** Set the bitrate reduction information to null (no compression). */ public void clearBitrateReduction () { _curFormatRegion.clearBitrateReduction (); }
/** Sets the bit depth. */ public void setBitDepth (int bitDepth) { _curFormatRegion.setBitDepth (bitDepth); }
/** Sets the sample rate. */ public void setSampleRate (double sampleRate) { _curFormatRegion.setSampleRate (sampleRate); }