make it quieter

This commit is contained in:
twobit 2012-08-06 03:47:48 +02:00
parent c201133ee9
commit 9003216a16

View File

@ -7,7 +7,7 @@
static void fill_buffer(void* userdata, Uint8* stream, int len) { static void fill_buffer(void* userdata, Uint8* stream, int len) {
for(int i = 0; i < len / 2; i++) ((uint16_t*)stream)[i] = synth_mix() * 100; for(int i = 0; i < len / 2; i++) ((uint16_t*)stream)[i] = synth_mix() * 50;
} }
SDL_AudioSpec spec = { 8000000 / (3 * 64), AUDIO_U16SYS, 1, 0, 1024, }; SDL_AudioSpec spec = { 8000000 / (3 * 64), AUDIO_U16SYS, 1, 0, 1024, };