Click or drag to resize

WaveFileCombine(WaveFile) 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.207-beta
Syntax
public static WaveFile Combine(
	params WaveFile[] waveFiles
)
View Source

Parameters

waveFiles  WaveFile
Wave files to combine

Return Value

WaveFile
Combined wave files.
Remarks

This overload "equalizes" the volume of each source wave file. To specify a desired volume for each combined wave file use the Combine(WaveFile, Double) overload that takes a series of volumes as a parameter.

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