SaveSample(id, f$[, fmt])
idto the file specified in
f$. The optional argument
fmtspecifies the format in which the sample should be exported. Currently, only
#SMPFMT_WAVEis supported here. This will save the sample in the RIFF WAVE format.
@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.