Add an initializer for a static const member.

This commit is contained in:
bgk 2009-01-14 12:02:19 +00:00
parent 5e7c3ce5cd
commit 63d2caa1d9
2 changed files with 5 additions and 2 deletions

View File

@ -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)
{

View File

@ -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);