From e7b40927a146fe9bd268d709ab56908b1f6dd282 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 1 Mar 2009 22:09:07 +0000 Subject: [PATCH] Alter audio buffer and rate constants Thanks to KernelJ for the tip. --- config.h.in | 8 -------- src/SoundEffect.cpp | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/config.h.in b/config.h.in index 76e97a7..59a05b1 100644 --- a/config.h.in +++ b/config.h.in @@ -56,10 +56,6 @@ /* Define to 1 if you have the `sqrt' function. */ #undef HAVE_SQRT -/* Define to 1 if `stat' has the bug that it succeeds when given the - zero-length file name argument. */ -#undef HAVE_STAT_EMPTY_STRING_BUG - /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H @@ -90,10 +86,6 @@ /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL -/* Define to 1 if `lstat' dereferences a symlink specified with a trailing - slash. */ -#undef LSTAT_FOLLOWS_SLASHED_SYMLINK - /* Name of package */ #undef PACKAGE diff --git a/src/SoundEffect.cpp b/src/SoundEffect.cpp index 6a2d2d0..c7e1f67 100644 --- a/src/SoundEffect.cpp +++ b/src/SoundEffect.cpp @@ -1,5 +1,5 @@ // SoundEffect.cpp -- SDL Mixer wrapper. -// Copyright (C) 2008 Nick Gasson +// Copyright (C) 2008-2009 Nick Gasson // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -19,9 +19,9 @@ #include "ConfigFile.hpp" int SoundEffect::loadCount(0); -int SoundEffect::audioRate(22050); +int SoundEffect::audioRate(44100); int SoundEffect::audioChannels(2); -int SoundEffect::audioBuffers(4096); +int SoundEffect::audioBuffers(1024); Uint16 SoundEffect::audioFormat(AUDIO_S16); bool SoundEffect::enabled(true); -- 2.39.2