summaryrefslogtreecommitdiffstats
path: root/src/common/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorKrzysztof Dermont <erihel@gmail.com>2014-06-21 02:58:41 +0200
committerKrzysztof Dermont <erihel@gmail.com>2014-06-21 02:59:26 +0200
commit1630cf0ed20ea8df879327af1275ff281a9bc7e0 (patch)
tree8ea090c6ce1e9ea5b5fc95198bdbf5489d8d686f /src/common/resources/resourcemanager.cpp
parent2260f6bf4feb62929e32a1bea9cd3f403aa034b1 (diff)
downloadcolobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.tar.gz
colobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.tar.bz2
colobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.zip
Implemented libsndfile loader in PhysFS
Diffstat (limited to 'src/common/resources/resourcemanager.cpp')
-rw-r--r--src/common/resources/resourcemanager.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/common/resources/resourcemanager.cpp b/src/common/resources/resourcemanager.cpp
index ccef2a3..b01424b 100644
--- a/src/common/resources/resourcemanager.cpp
+++ b/src/common/resources/resourcemanager.cpp
@@ -124,7 +124,13 @@ SDL_RWops* CResourceManager::GetSDLFileHandler(const std::string &filename)
}
-int CResourceManager::SDLClose(SDL_RWops* context)
+CSNDFile* CResourceManager::GetSNDFileHandler(const std::string &filename)
+{
+ return new CSNDFile(filename);
+}
+
+
+int CResourceManager::SDLClose(SDL_RWops *context)
{
if (CheckSDLContext(context))
{
@@ -138,7 +144,7 @@ int CResourceManager::SDLClose(SDL_RWops* context)
}
-int CResourceManager::SDLRead(SDL_RWops* context, void* ptr, int size, int maxnum)
+int CResourceManager::SDLRead(SDL_RWops *context, void *ptr, int size, int maxnum)
{
if (CheckSDLContext(context))
{
@@ -152,13 +158,13 @@ int CResourceManager::SDLRead(SDL_RWops* context, void* ptr, int size, int maxnu
}
-int CResourceManager::SDLWrite(SDL_RWops* context, const void* ptr, int size, int num)
+int CResourceManager::SDLWrite(SDL_RWops *context, const void *ptr, int size, int num)
{
return 0;
}
-int CResourceManager::SDLSeek(SDL_RWops* context, int offset, int whence)
+int CResourceManager::SDLSeek(SDL_RWops *context, int offset, int whence)
{
if (CheckSDLContext(context))
{
@@ -188,7 +194,7 @@ int CResourceManager::SDLSeek(SDL_RWops* context, int offset, int whence)
}
-bool CResourceManager::CheckSDLContext(SDL_RWops* context)
+bool CResourceManager::CheckSDLContext(SDL_RWops *context)
{
if (context->type != 0xc010b04f)
{