Name
IsSample -- determine if a sample is in a supported format
Synopsis
ret = IsSample(file$[, table])
Function
This function will check if the file specified file$ is in a supported sample format. If it is, this function will return True, otherwise False. If this function returns True, you can load the sample by calling LoadSample().

Starting with Hollywood 6.0 this function accepts an optional table argument which allows you to configure further options:

Loader:
This tag allows you to specify one or more format loaders that should be asked to load this sample. This must be set to a string containing the name(s) of one or more loader(s). Defaults to default. See Loaders and adapters for details. (V6.0)

Adapter:
This tag allows you to specify one or more file adapters that should be asked to open the specified file. This must be set to a string containing the name(s) of one or more adapter(s). Defaults to default. See Loaders and adapters for details. (V6.0)

Inputs
file$
file to check
table
optional: table configuring further options (V6.0)
Results
ret
True if the sample is in a supported format, False otherwise

Show TOC