Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/fluidsynth/src/sfloader/fluid_samplecache.h
4396 views
1
/* FluidSynth - A Software Synthesizer
2
*
3
* Copyright (C) 2003 Peter Hanappe and others.
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public License
7
* as published by the Free Software Foundation; either version 2.1 of
8
* the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free
17
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
* 02110-1301, USA
19
*/
20
21
22
#ifndef _FLUID_SAMPLECACHE_H
23
#define _FLUID_SAMPLECACHE_H
24
25
#include "fluid_sfont.h"
26
#include "fluid_sffile.h"
27
28
int fluid_samplecache_load(SFData *sf,
29
unsigned int sample_start, unsigned int sample_end, int sample_type,
30
int try_mlock, short **data, char **data24);
31
32
int fluid_samplecache_unload(const short *sample_data);
33
34
/* Only used for tests */
35
int fluid_samplecache_count_entries(void);
36
37
#endif /* _FLUID_SAMPLECACHE_H */
38
39