AudaciousTunes/Audacious/Mod.cs
/// <summary>
/// Multiplies sampleNum by the given volume.
/// </summary>
/// <param name="sampleNum">Existing sample data.</param>
/// <param name="vol">The volume to multiply by.</param>
Multiplies sampleNum by the given volume.
Multiplies sampleNum by the given volume .
public static List<float> Volume(List<float> samples, float vol)
        {
            List<float> result = new List<float>(samples);
            for (int i = 0; i < result.Count; i++)
            {
                result[i] *= vol;
            }
            return result;
        }
public static List < float > Volume ( List < float > samples , float vol ) { List < float > result = new List < float > ( samples ) ; for ( int i = 0 ; i < result . Count ; i ++ ) { result [ i ] *= vol ; } return result ; }
Multiplies sampleNum by the given volume.
Multiplies sampleNum by the given volume .
samples
List<float>
vol
float
The volume to multiply by.
The volume to multiply by .
sampleNum
Existing sample data.
Existing sample data .