summaryrefslogtreecommitdiff
path: root/src/buffer/common.h
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-09-14 08:57:42 -0400
committerAndrew Opalach <andrew@akon.city> 2026-09-14 08:57:42 -0400
commit8f208c26b6fa1a9f3372679c047cab559c06e26b (patch)
tree323d894d6ff8e1ed1445c40cb1e2f5d3cee5e8e8 /src/buffer/common.h
parentc66c7c64ebd16287b892f8a780cffcabafba3799 (diff)
downloadcamu-8f208c26b6fa1a9f3372679c047cab559c06e26b.tar.gz
camu-8f208c26b6fa1a9f3372679c047cab559c06e26b.tar.bz2
camu-8f208c26b6fa1a9f3372679c047cab559c06e26b.zip
Server-side fixes from DIRECT_MODE testing
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/buffer/common.h')
-rw-r--r--src/buffer/common.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buffer/common.h b/src/buffer/common.h
index aaf53ea..24964ba 100644
--- a/src/buffer/common.h
+++ b/src/buffer/common.h
@@ -1,16 +1,5 @@
#pragma once
-//#define CAMU_BUFFER_SPORADIC_ERRORS
-#ifdef CAMU_BUFFER_SPORADIC_ERRORS
-#include <al/random.h>
-#define ROLL_FOR_BUFFER_ERROR(buf) do { \
- if (al_random_int(0, 254) == 72) { \
- log_warn("Random buffer error proc."); \
- atomic_store(u32)(&(buf)->flow, FLUSHED_ERROR, AL_ATOMIC_RELAXED); \
- } \
-} while (0)
-#endif
-
enum {
CAMU_BUFFER_BUFFERED = 0,
CAMU_BUFFER_CORK,