AudaciousTunes/Audacious/Utils.cs
/// <summary>
/// Returns the ms equivalent to the given sampleNum of sampleNum.
/// </summary>
/// <param name="sampleNum">Existing sample data.</param>
/// <param name="channels">The sampleNum of channels involved.</param>
Returns the ms equivalent to the given sampleNum of sampleNum.
Returns the ms equivalent to the given sampleNum of sampleNum .
public static float TimeBySamples(int sampleNum,
            int sampRate,
            int channels)
        {
            return sampleNum / ((sampRate / 1000f) * channels);
        }
public static float TimeBySamples ( int sampleNum , int sampRate , int channels ) { return sampleNum / ( ( sampRate / 1000f ) * channels ) ; }
Returns the ms equivalent to the given sampleNum of sampleNum.
Returns the ms equivalent to the given sampleNum of sampleNum .
//Returns sampleNum of sampleNum divided by the sample rate * channels.
sampleNum
int
Existing sample data.
Existing sample data .
sampRate
int
channels
int
The sampleNum of channels involved.
The sampleNum of channels involved .