/** * Accessor for the SampleRate field * @return returns a list of long integers representing the numerator and denominator of the sample rate in that order */ public List<Long> getSampleRate(){ List<Long> list = new ArrayList<>(); Long numerator = this.sample_rate.getNumerator(); list.add(numerator); Long denominator = this.sample_rate.getDenominator(); list.add(denominator); return list; }
/** * Getter for the audio sampling rate numerator of this WaveAudioEssenceDescriptor * * @return audio sampling rate numerator in the inclusive range [1, Integer.MAX_VALUE] * @throws MXFException when audio sampling rate numerator is out of range */ public int getAudioSamplingRateNumerator() throws MXFException { long value = this.waveAudioEssenceDescriptorBO.audio_sampling_rate.getNumerator(); if ((value <=0) || (value > Integer.MAX_VALUE)) { throw new MXFException(String.format("Observed audio sampling rate numerator = %d, which is not supported at this time", value)); } return (int)value; }
/** * Getter for the numerator of this Timeline Track's edit rate * @return the numerator of this Timeline Track's edit rate */ public long getEditRateNumerator() { return this.timelineTrackBO.edit_rate.getNumerator(); }