This commit is contained in:
Glenn Maynard
2004-02-27 10:01:44 +00:00
parent 5338e568c6
commit 960a4c503d
@@ -8,18 +8,16 @@
#include "RageUtil.h" #include "RageUtil.h"
#include "RageSoundManager.h" #include "RageSoundManager.h"
#include "SDL.h"
/* samples */ static const int channels = 2;
const int channels = 2; static const int bytes_per_frame = channels*2; /* 16-bit */
const int bytes_per_frame = channels*2; /* 16-bit */ static const int samplerate = 44100;
const int samplerate = 44100; static const int buffersize = 1024*4; /* in frames */
const int buffersize = 1024*4; /* in frames */
/* We'll fill the buffer in chunks this big. This should evenly divide the /* We'll fill the buffer in chunks this big. This should evenly divide the
* buffer size. */ * buffer size. */
const int num_chunks = 8; static const int num_chunks = 8;
const int chunksize = buffersize / num_chunks; static const int chunksize = buffersize / num_chunks;
int RageSound_DSound_Software::MixerThread_start(void *p) int RageSound_DSound_Software::MixerThread_start(void *p)
{ {