4 * abstract wavecache, a way to organize samples
6 * $Id: SND_WaveCache.h 229 2002-12-27 13:11:01Z mein $
8 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version. The Blender
14 * Foundation also sells licenses for use in proprietary software under
15 * the Blender License. See http://www.blender.org/BL/ for information
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software Foundation,
25 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
28 * All rights reserved.
30 * The Original Code is: all of this file.
32 * Contributor(s): none yet.
34 * ***** END GPL/BL DUAL LICENSE BLOCK *****
38 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning
41 #ifndef __SND_WAVECACHE_H
42 #define __SND_WAVECACHE_H
44 #include "SND_WaveSlot.h"
45 #include "SoundDefines.h"
46 #include "SND_SoundObject.h"
53 virtual ~SND_WaveCache();
55 SND_WaveSlot
* GetWaveSlot(const STR_String
& samplename
);
57 void RemoveAllSamples();
58 void RemoveSample(const STR_String
& samplename
, int buffer
);
61 std::map
<STR_String
, SND_WaveSlot
*> m_samplecache
;
63 SND_WaveSlot
* m_bufferList
[NUM_BUFFERS
];
68 #endif //__SND_WAVECACHE_H