src/FaustSawtooth.cpp
SoundUI(const std::vector<std::string>& sound_directories, int sample_rate = -1, SoundfileReader* reader = nullptr)
        :fSoundfileDir(sound_directories)
        {
            fSoundReader = (reader) ? reader : &gReader;
            fSoundReader->setSampleRate(sample_rate);
        }
/**
         * Create a soundfile loader which will typically use a concrete SoundfileReader like LibsndfileReader or JuceReader to load soundfiles.
         *
         * @param sound_directories - a vector of base directories to look for files, which paths will be relative to these ones
         * @param sample_rate - the audio driver SR which may be different from the file SR, to possibly resample files
         * @param reader - an alternative soundfile reader
         *
         * @return the soundfile loader.
         */
Create a soundfile loader which will typically use a concrete SoundfileReader like LibsndfileReader or JuceReader to load soundfiles.
@param sound_directories - a vector of base directories to look for files, which paths will be relative to these ones
@param sample_rate - the audio driver SR which may be different from the file SR, to possibly resample files
@param reader - an alternative soundfile reader

@return the soundfile loader.
Create a soundfile loader which will typically use a concrete SoundfileReader like LibsndfileReader or JuceReader to load soundfiles . @param sound_directories - a vector of base directories to look for files which paths will be relative to these ones @param sample_rate - the audio driver SR which may be different from the file SR to possibly resample files @param reader - an alternative soundfile reader @return the soundfile loader .
SoundUI(const std::vector<std::string>& sound_directories, int sample_rate = -1, SoundfileReader* reader = nullptr)
        :fSoundfileDir(sound_directories)
        {
            fSoundReader = (reader) ? reader : &gReader;
            fSoundReader->setSampleRate(sample_rate);
        }
SoundUI ( const std :: vector < std :: string > & sound_directories , int sample_rate = -1 , SoundfileReader * reader = nullptr ) : fSoundfileDir ( sound_directories ) { fSoundReader = ( reader ) ? reader : & gReader ; fSoundReader -> setSampleRate ( sample_rate ) ; }
Create a soundfile loader which will typically use a concrete SoundfileReader like LibsndfileReader or JuceReader to load soundfiles.
Create a soundfile loader which will typically use a concrete SoundfileReader like LibsndfileReader or JuceReader to load soundfiles .