From 4f3ea475b0c72cf83175cc69bdd128b7a306523b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 27 May 2018 17:39:09 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=9F=B3=E9=A2=91=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/audio/sdl/audio.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/libjin/audio/sdl/audio.h') diff --git a/src/libjin/audio/sdl/audio.h b/src/libjin/audio/sdl/audio.h index 969fbd9..53d0d76 100644 --- a/src/libjin/audio/sdl/audio.h +++ b/src/libjin/audio/sdl/audio.h @@ -16,6 +16,7 @@ namespace audio public: + /* struct Setting : SettingBase { int rate; // 采样率 @@ -23,6 +24,7 @@ namespace audio char channels; // 声道数 int samples; // 取样数 }; + */ static inline Audio* get() { @@ -40,6 +42,10 @@ namespace audio void setVolume(float volume) override; float getVolume() override; + /* process functions*/ + void processCommands(); + void processSources(Uint8* buffer, int len); + private: SDLAudio() {} @@ -50,14 +56,6 @@ namespace audio unsigned int audioDevice; - std::vector sources; - - static void defaultCallback(void *udata, Uint8 *stream, int len); - - /* process functions*/ - void processCommands(); - void processSources(int len); - }; typedef SDLAudio::Setting SDLAudioSetting; -- cgit v1.1-26-g67d0