From 5298bdefd7f7875ae8b7cb6c9201e3321af62011 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 May 2018 08:22:30 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/audio/sdl/source.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libjin/audio/sdl/source.h') diff --git a/src/libjin/audio/sdl/source.h b/src/libjin/audio/sdl/source.h index 743d4f0..2f9acb5 100644 --- a/src/libjin/audio/sdl/source.h +++ b/src/libjin/audio/sdl/source.h @@ -58,7 +58,7 @@ namespace audio int rate; // 采样频率 unsigned char bitdepth; // 每个sample的比特长度 int samples; // sample数 = size / (bitdepth / 8) - unsigned char channel; // channel数1或2 + unsigned char channel; // channel数1(mono)或2(stereo) char silence; // 0 } raw; @@ -83,7 +83,7 @@ namespace audio /* Process function */ static void processCommands(); - static void processSources(Uint8* buffer, int len); + static void processSources(void* buffer, size_t size); private: -- cgit v1.1-26-g67d0