Add an initializer for a static const member.
This commit is contained in:
parent
5e7c3ce5cd
commit
63d2caa1d9
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue