Path: blob/master/libs/fluidsynth/src/sfloader/fluid_samplecache.h
4396 views
/* FluidSynth - A Software Synthesizer1*2* Copyright (C) 2003 Peter Hanappe and others.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public License6* as published by the Free Software Foundation; either version 2.1 of7* the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful, but10* WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free16* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA17* 02110-1301, USA18*/192021#ifndef _FLUID_SAMPLECACHE_H22#define _FLUID_SAMPLECACHE_H2324#include "fluid_sfont.h"25#include "fluid_sffile.h"2627int fluid_samplecache_load(SFData *sf,28unsigned int sample_start, unsigned int sample_end, int sample_type,29int try_mlock, short **data, char **data24);3031int fluid_samplecache_unload(const short *sample_data);3233/* Only used for tests */34int fluid_samplecache_count_entries(void);3536#endif /* _FLUID_SAMPLECACHE_H */373839