/// <summary> /// Returns a new wave with the given sample data appended. /// </summary> /// <param name="wav">An existing wave object.</param> /// <param name="samples">Existing sample data.</param> public static Wav operator +(Wav wav, List <float> samples) { Wav result = new Wav(wav); result.Add(samples); return(result); }
/// <summary> /// Returns a new wave with the sample data from the second appended. /// </summary> /// <param name="wav1">An existing wave object.</param> /// <param name="wav2">An existing wave object.</param> public static Wav operator +(Wav wav1, Wav wav2) { Wav result = new Wav(wav1); result.Add(wav2); return(result); }