|
WaveFile(Int32, Int16, Int16, UInt16) Constructor
|
Creates a new empty in-memory wave file in specified audio format.
Namespace: GSF.MediaAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax new :
sampleRate : int *
bitsPerSample : int16 *
channels : int16 *
audioFormat : uint16 -> WaveFile
GSF.Media.WaveFile = function(sampleRate, bitsPerSample, channels, audioFormat);
View SourceParameters
- sampleRate Int32
- Desired sample rate (e.g., 44100).
- bitsPerSample Int16
- Desired bits-per-sample (e.g., 16).
- channels Int16
- Desired data channels (e.g., 2 for stereo).
- audioFormat UInt16
- Desired audio format (e.g., 0x1 for Pulse Code Modulation).
Remarks
Consumer will need to apply appropriate data compression for non-PCM data formats.
See Also