@SAMPLE id, filename$[, table]
The third argument is optional. It is a table that can be used to set further options for the loading operation. The following fields of the table can be used:
Link:
False
if you do not want to have this sample
linked to your executable/applet when you compile your script.
This field defaults to True
which means that the sample is linked
to your executable/applet when Hollywood is in compile mode.
Loader:
Adapter:
UserTags:
Sample formats that are supported on all platforms are RIFF WAVE, IFF 8SVX, IFF 16SV, and sample formats you have a plugin for. Depending on the platform Hollywood is running on, more sample formats might be supported. For example, on Amiga compatible systems Hollywood will be able to open all sample formats you have datatypes for as well.
If you want to load the sample manually, please use the LoadSample() command.
@SAMPLE 1, "Gunshot.8svx"The above declaration assigns sample number 5 to the sample "Gunshot.8svx".
@SAMPLE 1, "Sound/Samples/Gunshot.wav", {Link=False}Does the same as above but the sample will not be linked when the script is compiled.