diff --git a/src/common/SoundSDL.cpp b/src/common/SoundSDL.cpp index c1785b8c..8733ca5c 100644 --- a/src/common/SoundSDL.cpp +++ b/src/common/SoundSDL.cpp @@ -20,6 +20,9 @@ extern int emulating; extern bool speedup; +// Hold up to 100 ms of data in the ring buffer +const float SoundSDL::_delay = 0.1f; + SoundSDL::SoundSDL(): _rbuf(0) { diff --git a/src/common/SoundSDL.h b/src/common/SoundSDL.h index 70cf1f0e..34c2b729 100644 --- a/src/common/SoundSDL.h +++ b/src/common/SoundSDL.h @@ -41,8 +41,8 @@ private: SDL_cond * _cond; SDL_mutex * _mutex; - // Hold up to 100 ms of data in the ring buffer - static const float _delay = 0.1f; + // Defines what delay in seconds we keep in the sound buffer + static const float _delay; static void soundCallback(void *data, u8 *stream, int length); virtual void read(u16 * stream, int length);