mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-11 14:30:08 +00:00
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:
parent
bbf3205415
commit
0bdfe53395
@ -221,7 +221,8 @@ static BYTE g_nPhasorMode = 0; // 0=Mockingboard emulation, 1=Phasor native
|
|||||||
|
|
||||||
#ifdef APPLE2IX
|
#ifdef APPLE2IX
|
||||||
#define MB_CHANNELS 2
|
#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 unsigned short g_nMB_NumChannels = MB_CHANNELS;
|
||||||
|
|
||||||
static const DWORD g_dwDSBufferSize = MB_BUF_SIZE;
|
static const DWORD g_dwDSBufferSize = MB_BUF_SIZE;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "ds-shim.h"
|
#include "ds-shim.h"
|
||||||
|
|
||||||
#define MAX_SAMPLES (16*1024)
|
#define MAX_SAMPLES (8*1024)
|
||||||
|
|
||||||
#if defined(APPLE2IX)
|
#if defined(APPLE2IX)
|
||||||
#define SAFE_RELEASE(p) Free(p)
|
#define SAFE_RELEASE(p) Free(p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user