Here you can find the source of minutesToSamples(int sampleRate, int minutes)
minutes
are with sampleRate
.
Parameter | Description |
---|---|
sampleRate | The sample rate. |
minutes | The number of minutes. |
public static int minutesToSamples(int sampleRate, int minutes)
//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; } }