aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/audio/SDL/je_sdl_source.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-06 13:12:29 +0800
committerchai <chaifix@163.com>2018-12-06 13:12:29 +0800
commitb3712ebdf148bd8d2d31e70734a4b7923f6038f8 (patch)
treec813d158030ee33b76d7ec23fa2deaa1eb0a4e36 /src/libjin/audio/SDL/je_sdl_source.h
parent17d86218e25a6c889c24822da8d7b59967babd89 (diff)
*remove create function
Diffstat (limited to 'src/libjin/audio/SDL/je_sdl_source.h')
-rw-r--r--src/libjin/audio/SDL/je_sdl_source.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/libjin/audio/SDL/je_sdl_source.h b/src/libjin/audio/SDL/je_sdl_source.h
index 07333ae..8a3309e 100644
--- a/src/libjin/audio/SDL/je_sdl_source.h
+++ b/src/libjin/audio/SDL/je_sdl_source.h
@@ -28,21 +28,19 @@ namespace JinEngine
{
public:
///
- /// Create source from raw source data file.
+ /// Source constructor.
+ ///
+ SDLSource();
+
+ ///
///
- /// @param file Audio source file.
- /// @return Return source if create successful, otherwise return null.
///
- static SDLSource* createSource(const char* file);
+ SDLSource(const char* file);
///
- /// Create source from raw source data.
- ///
- /// @param mem Source data.
- /// @param size Source data size.
- /// @return Return source if create successful, otherwise return null.
///
- static SDLSource* createSource(void* mem, size_t size);
+ ///
+ SDLSource(void* mem, size_t size);
///
/// Source destructor.
@@ -134,11 +132,6 @@ namespace JinEngine
protected:
///
- /// Source constructor.
- ///
- SDLSource();
-
- ///
/// Decode wav file.
///
/// @param mem Wav file data.