SaveSample(id, f$[, fmt, t])
id to the file specified
in f$. The optional argument fmt specifies the format in which the
sample should be exported. By default, Hollywood supports the following
two sound formats:
#SNDFMT_WAVE:
#SNDFMT_SVX:Additional sound formats can be made available by plugins.
Starting with Hollywood 10.0, SaveSample() accepts an optional table argument
that allows you to pass additional arguments to the function. The following
tags are currently supported by the optional table argument:
Bitrate:outfmt argument supports audio compression
using a specific bitrate, this tag can be used to specify that bitrate.
For the #SNDFMT_WAVE and #SNDFMT_SVX formats this tag doesn't have any effect. (V11.0)
Quality:outfmt argument supports audio compression
using a specific quality setting, this tag can be used to specify that quality.
For the #SNDFMT_WAVE and #SNDFMT_SVX formats this tag doesn't have any effect. (V11.0)
Adapter:
UserTags:
#SNDFMT_WAVE)@SAMPLE 1, "ouch.8svx" SaveSample(1, "ouch.wav")The code above loads a sample in the IFF 8SVX format and saves it as a RIFF WAVE sample.