|
WaveFileAddSamples Method
|
Adds a series of samples, one per channel, to the wave file.
Namespace: GSF.MediaAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax public void AddSamples(
params double[] samples
)
Public Sub AddSamples (
ParamArray samples As Double()
)
public:
void AddSamples(
... array<double>^ samples
)
member AddSamples :
samples : float[] -> unit
function AddSamples(... samples);
View SourceParameters
- samples Double
- Samples to add to the wave file.
Remarks
You need to pass in one sample for each defined channel (e.g., if wave is configured for stereo
you will need to pass in two parameters).
Each sample will be cast to the appropriate size. Samples should be scaled by
AmplitudeScalar
for integer based wave file formats to make sure samples will fit into
BitsPerSample defined
by wave file.
See Also