- moved the instrument set maintenance out of the Timidity++ library into the player class.

This removes the dependency on the sound font manager from the low level library, reducing the direct dependencies to FileReader and SoundFontReader.
This commit is contained in:
Christoph Oelckers 2019-09-23 11:27:57 +02:00
commit 2cf8cc47df
7 changed files with 27 additions and 23 deletions

View file

@ -127,14 +127,14 @@ double flt_rand()
return (int)GenRand_Real1();
}
struct timidity_file *open_file(const char *name, FSoundFontReader *sfreader)
struct timidity_file *open_file(const char *name, SoundFontReaderInterface *sfreader)
{
FileReader fr;
FString filename;
if (name == nullptr)
{
fr = sfreader->OpenMainConfigFile();
filename = sfreader->basePath() + "timidity.cfg";
filename = sfreader->MainConfigFileName();
}
else
{