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 the loader set using SetDefaultLoader(). 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 the adapter set using SetDefaultAdapter(). See Loaders and adapters for details. (V6.0)

UserTags:
This tag can be used to specify additional data that should be passed to loaders and adapters. If you use this tag, you must set it to a table of key-value pairs that contain the additional data that should be passed to plugins. See User tags for details. (V10.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