Examples of frequency()


Examples of javazoom.jl.decoder.Header.frequency()

            aff_properties.put("mp3.vbr", new Boolean(nVBR));
            aff_properties.put("mp3.vbr.scale", new Integer(m_header.vbr_scale()));
            FrameSize = m_header.calculate_framesize();
            aff_properties.put("mp3.framesize.bytes", new Integer(FrameSize));
            if (FrameSize < 0) throw new UnsupportedAudioFileException("Invalid FrameSize : " + FrameSize);
            nFrequency = m_header.frequency();
            aff_properties.put("mp3.frequency.hz", new Integer(nFrequency));
            FrameRate = (float) ((1.0 / (m_header.ms_per_frame())) * 1000.0);
            aff_properties.put("mp3.framerate.fps", new Float(FrameRate));
            if (FrameRate < 0) throw new UnsupportedAudioFileException("Invalid FrameRate : " + FrameRate);
            // Remove heading tag length from real stream length.
View Full Code Here

Examples of javazoom.jl.decoder.Header.frequency()

              // REVIEW: Incorrect functionality.
              // the decoder should provide decoded
              // frequency and channels output as it may differ from
              // the source (e.g. when downmixing stereo to mono.)
              int channels = (header.mode()==Header.SINGLE_CHANNEL) ? 1 : 2;
              int freq = header.frequency();
              output = new WaveFileObuffer(channels, freq, destName);
              decoder.setOutputBuffer(output);
            }

            Obuffer decoderOutput = decoder.decodeFrame(header, stream);
View Full Code Here

Examples of org.jquantlib.termstructures.InterestRate.frequency()

          final double cachedPrice = prices[bondIndex];

          final double price = faceAmount*bond.dirtyPrice(yield.rate(),
                                                       yield.dayCounter(),
                                                       yield.compounding(),
                                                       yield.frequency(),
                                                       today)/100;
          if (Math.abs(price-cachedPrice) > tolerance) {
              fail("failed to reproduce cached price:\n"
                          + "    calculated: " + price + "\n"
                          + "    expected:   " + cachedPrice + "\n"
View Full Code Here

Examples of org.jquantlib.termstructures.InterestRate.frequency()

          final double cachedPrice = prices[bondIndex];

          final double price = faceAmount*bond.dirtyPrice(yield.rate(),
                                                       yield.dayCounter(),
                                                       yield.compounding(),
                                                       yield.frequency(),
                                                       today)/100;
          if (Math.abs(price-cachedPrice) > tolerance) {
              fail("failed to reproduce cached price:\n"
                          + "    calculated: " + price + "\n"
                          + "    expected:   " + cachedPrice + "\n"
View Full Code Here

Examples of org.openntf.domino.xots.annotations.Schedule.frequency()

          sb.append(persistent.appContext());
        }
        Schedule schedule = cls.getAnnotation(Schedule.class);
        if (schedule != null) {
          sb.append(", Freq:");
          sb.append(schedule.frequency());

          // sb.append(", TimeUnit:");
          // sb.append(schedule.timeunit());
          //
          // WHEE: Why do I get this error here:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.