Skip to content

Commit b6f71d4

Browse files
Adjust buffer timing constants for audio processing
1 parent 6f4f313 commit b6f71d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/miniaudio/ma_thing_hl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ bool checkIfPnPDevice() {
186186
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
187187

188188
// Buffer constants
189-
#define PADDING_MS 100
190-
#define BUFFER_MS 2000
191-
#define HALF_BUFFER_MS 900
189+
#define PADDING_MS 25
190+
#define BUFFER_MS 500
191+
#define HALF_BUFFER_MS 225
192192

193193
#define PADDING_FRAMES ((SAMPLE_RATE * PADDING_MS) / 1000) // 4410 frames
194194
#define BUFFER_FRAMES ((SAMPLE_RATE * BUFFER_MS) / 1000) // 88200 frames
@@ -2338,4 +2338,4 @@ DEFINE_PRIM(_VOID, stopSoundEffect, _I32)
23382338
DEFINE_PRIM(_BOOL, isSoundEffectPlaying, _I32)
23392339
DEFINE_PRIM(_VOID, setMixerMasterVolume, _F32)
23402340
DEFINE_PRIM(_F32, getMixerMasterVolume, _NO_ARG)
2341-
DEFINE_PRIM(_VOID, destroyMixer, _NO_ARG)
2341+
DEFINE_PRIM(_VOID, destroyMixer, _NO_ARG)

0 commit comments

Comments
 (0)