AudaciousTunes/Audacious/Gen.cs
/// <summary>
/// Generates samples of silence copied to both channels.
/// </summary>
/// <param name="sampleNum">The number of samples of silence.</param>
Generates samples of silence copied to both channels.
Generates samples of silence copied to both channels .
public static List<float> Silence(int sampleNum)
        {
            List<float> result = new List<float>();
            for (int i = 0; i < sampleNum; i++)
            {
                result.Add(0);
            }
            return result;
        }
public static List < float > Silence ( int sampleNum ) { List < float > result = new List < float > ( ) ; for ( int i = 0 ; i < sampleNum ; i ++ ) { result . Add ( 0 ) ; } return result ; }
Generates samples of silence copied to both channels.
Generates samples of silence copied to both channels .
//Creates a variable to hold the result. //Iterates through the samples to add data. //Returns the new samples.
sampleNum
int
The number of samples of silence.
The number of samples of silence .