Gets the name of the instrument to play the sample.
char *SelectSamplePlayer( Item Sample, int32 IfVariable )
This function gets and returns the name of the appropriate instrument that will play the given sample. If there is no appropriate instrument to play the sample, it returns NULL. This function looks at the sample rate, the number of channels (mono or stereo), width (8 or 16), and compression type to determine the appropriate instrument for the sample. It also lets you specify whether you need to vary the pitch or play only at the original pitch.
This function returns the name of the instrument that will play the given sample, or NULL if there is no appropriate instrument to play the sample.
Library call implemented in music.lib V20.
score.h, music.lib
LoadSoundFile
()