diff options
author | chai <chaifix@163.com> | 2018-05-30 08:22:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-30 08:22:30 +0800 |
commit | 5298bdefd7f7875ae8b7cb6c9201e3321af62011 (patch) | |
tree | 7c750cef72035102ba012959f1914f4d560cd5a5 /src/libjin/audio/sdl/source.h | |
parent | aa42143689d539ca2e64c37433533b03c1dd2024 (diff) |
更改回调函数
Diffstat (limited to 'src/libjin/audio/sdl/source.h')
-rw-r--r-- | src/libjin/audio/sdl/source.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; // channel12 + unsigned char channel; // channel1(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: |