Debian Codegraph @

engine/core/audio/soundclipmanager.i

raw
1 /***************************************************************************
2 * Copyright (C) 2005-2019 by the FIFE team *
3 * http://www.fifengine.net *
4 * This file is part of FIFE. *
5 * *
6 * FIFE is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Lesser General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2.1 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
20 ***************************************************************************/
21
22 %module fife
23 %{
24 #include "audio/soundclip.h"
25 #include "audio/soundclipmanager.h"
26 %}
27
28 namespace FIFE {
29 class SoundClip;
30
31 class SoundClipManager : public IResourceManager {
32 public:
33 virtual ~SoundClipManager();
34
35 virtual size_t getMemoryUsed() const;
36 virtual size_t getTotalResourcesCreated() const;
37 virtual size_t getTotalResourcesLoaded() const;
38 virtual size_t getTotalResources() const;
39
40 virtual SoundClipPtr create(const std::string& name, IResourceLoader* loader = 0);
41 virtual SoundClipPtr load(const std::string& name, IResourceLoader* loader = 0);
42 virtual SoundClipPtr add(SoundClip* res);
43
44 virtual bool exists(const std::string& name);
45 virtual bool exists(ResourceHandle handle);
46
47 virtual void reload(const std::string& name);
48 virtual void reload(ResourceHandle handle);
49 virtual void reloadAll();
50 virtual void loadUnreferenced();
51
52 virtual void free(const std::string& name);
53 virtual void free(ResourceHandle handle);
54 virtual void freeAll();
55 virtual void freeUnreferenced();
56
57 virtual void remove(SoundClipPtr& resource);
58 virtual void remove(const std::string& name);
59 virtual void remove(ResourceHandle handle);
60 virtual void removeAll();
61 virtual void removeUnreferenced();
62
63 virtual SoundClipPtr get(const std::string& name);
64 virtual SoundClipPtr get(ResourceHandle handle);
65
66 virtual ResourceHandle getResourceHandle(const std::string& name);
67 };
68 }