From b3712ebdf148bd8d2d31e70734a4b7923f6038f8 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 6 Dec 2018 13:12:29 +0800 Subject: *remove create function --- src/libjin/audio/SDL/je_sdl_source.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'src/libjin/audio/SDL/je_sdl_source.h') 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. @@ -133,11 +131,6 @@ namespace JinEngine inline void process(void* buffer, size_t size); protected: - /// - /// Source constructor. - /// - SDLSource(); - /// /// Decode wav file. /// -- cgit v1.1-26-g67d0