Click or drag to resize

WaveFileCombine(WaveFile, Double) Method

Combines wave files together, all starting at the same time, into a single file. This has the effect of playing two sound tracks simultaneously.

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.181-beta
Syntax
public static WaveFile Combine(
	WaveFile[] waveFiles,
	double[] volumes
)
View Source

Parameters

waveFiles  WaveFile
Wave files to combine
volumes  Double
Volume for each wave file (0.0 to 1.0)

Return Value

WaveFile
Combined wave files.
Remarks

Cumulatively, volumes cannot exceed 1.0 - these volumes represent a fractional percentage of volume to be applied to each wave file.

Resulting sounds will overlap; no truncation is performed. Final wave file length will equal length of longest source file.

Combining sounds files with non-PCM based audio formats will have unexpected results.

See Also