Java Minute Convert minutesToSamples(int sampleRate, int minutes)

Here you can find the source of minutesToSamples(int sampleRate, int minutes)

Description

Calculates how many samples minutes are with sampleRate.

License

Open Source License

Parameter

Parameter Description
sampleRate The sample rate.
minutes The number of minutes.

Return

Minutes in samples.

Declaration

public static int minutesToSamples(int sampleRate, int minutes) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from  www .  j a v  a2  s .co m*/
     * Calculates how many samples <code>minutes</code> are with
     * <code>sampleRate</code>.
     * 
     * @param sampleRate The sample rate.
     * @param minutes The number of minutes.
     * @return Minutes in samples.
     */
    public static int minutesToSamples(int sampleRate, int minutes) {
        return (minutes * 60) * sampleRate;
    }
}

Related

  1. minutesToMillis(double minutes)
  2. minutesToMillis(int minutes)
  3. minutesToMillis(long minutes)
  4. minutesToMilliseconds(final int val)
  5. minutesToMilliseconds(int minutes)
  6. MinutesToSeconds(long minutes)
  7. minutesToSecs(long minutes)
  8. minutesToShortTime(int minutes)
  9. minutesToString(Integer minutes)