reduce buffer size for speaker

* this allows for better latency with the 22050Hz sample rate
    * keep the mockingboard at the same buffersize to prevent underruns (latency handled differently there)
This commit is contained in:
Aaron Culliney 2013-11-17 15:53:32 -08:00
parent bbf3205415
commit 0bdfe53395
2 changed files with 3 additions and 2 deletions

View File

@ -221,7 +221,8 @@ static BYTE g_nPhasorMode = 0; // 0=Mockingboard emulation, 1=Phasor native
#ifdef APPLE2IX
#define MB_CHANNELS 2
#define MB_BUF_SIZE MAX_SAMPLES * MB_CHANNELS
// NOTE - SAMPLE SIZE CHANGED : /2 for SPEAKER -- *2 here
#define MB_BUF_SIZE MAX_SAMPLES * 2 * MB_CHANNELS
static const unsigned short g_nMB_NumChannels = MB_CHANNELS;
static const DWORD g_dwDSBufferSize = MB_BUF_SIZE;

View File

@ -19,7 +19,7 @@
#include "ds-shim.h"
#define MAX_SAMPLES (16*1024)
#define MAX_SAMPLES (8*1024)
#if defined(APPLE2IX)
#define SAFE_RELEASE(p) Free(p)