Name
SaveSample -- save sample to disk (V5.0)
Synopsis
SaveSample(id, f$[, fmt])
Function
This command saves the sample specified in id to the file specified in f$. The optional argument fmt specifies the format in which the sample should be exported. Currently, only #SMPFMT_WAVE is supported here. This will save the sample in the RIFF WAVE format.

Inputs
id
identifier of sample to save
f$
path to save location
fmt
optional: format in which to export the sample (defaults to #SMPFMT_WAVE)
Example
@SAMPLE 1, "Gunshot.8svx"

SaveSample(1, "Gunshot.wav")
The code above loads a sample in the IFF 8SVX format and saves it as a RIFF WAVE sample.

Show TOC