summaryrefslogtreecommitdiff
path: root/src/resources/music.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-22 18:31:25 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-24 19:05:14 +0100
commitdd1386684b6430337d3b270bec1ca53fa69f9593 (patch)
tree68ec0caa9e81af7ebd38f45e4a9fcbf8ed35625c /src/resources/music.h
parent8a4b82e3ed75e426d44b69640f009e1e731c75c4 (diff)
downloadMana-dd1386684b6430337d3b270bec1ca53fa69f9593.tar.gz
Mana-dd1386684b6430337d3b270bec1ca53fa69f9593.tar.bz2
Mana-dd1386684b6430337d3b270bec1ca53fa69f9593.tar.xz
Mana-dd1386684b6430337d3b270bec1ca53fa69f9593.zip
Use SDL_RWops directly on top of PhysFS
This avoids the creation of a temporary buffer containing a complete file for the sole purpose of wrapping it up in an SDL_RWops. The necessary wrapper is by Ryan C. Gordon and is included in the PhysFS repository under 'extras'. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/resources/music.h')
-rw-r--r--src/resources/music.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resources/music.h b/src/resources/music.h
index 1d040706..6a4cabd5 100644
--- a/src/resources/music.h
+++ b/src/resources/music.h
@@ -41,13 +41,12 @@ class Music : public Resource
/**
* Loads a music from a buffer in memory.
*
- * @param buffer The memory buffer containing the music data.
- * @param bufferSize The size of the memory buffer in bytes.
+ * @param rw The SDL_RWops to load the music data from.
*
* @return <code>NULL</code> if the an error occurred, a valid pointer
* otherwise.
*/
- static Resource *load(void *buffer, unsigned bufferSize);
+ static Resource *load(SDL_RWops *rw);
/**
* Plays the music.