Skip to content

Instantly share code, notes, and snippets.

@tim-janik
tim-janik / lnice-latency.c
Last active September 20, 2022 09:52
Latency nice text of ALSA Test_latency.c
/*
* Latency test program
*
* Author: Jaroslav Kysela <perex@perex.cz>
*
* Author of bandpass filter sweep effect:
* Maarten de Boer <mdeboer@iua.upf.es>
*
* This small demo program can be used for measuring latency between
* capture and playback. This latency is measured from driver (diff when
@tim-janik
tim-janik / meson.build
Created September 11, 2016 13:40
build_always
# -*- Mode: python; python-indent-offset: 2 -*-
project ('test always_build', 'c')
buildid_h = custom_target ('buildid.h',
output : 'buildid.h',
command : ['../mkbuildid.sh', '+"%M"'],
build_always : true)
executable ('tester', 'tester.c', buildid_h)
@tim-janik
tim-janik / thread-local-storage-benchmark.diff
Created May 26, 2015 13:13
TLS - Thread Local Storage Benchmark Patch against Rapicorn
diff --git rcore/tests/multitest.cc rcore/tests/multitest.cc
index e8bed7a..0b985fd 100644
--- rcore/tests/multitest.cc
+++ rcore/tests/multitest.cc
@@ -15,6 +15,125 @@ using namespace Rapicorn;
#error RAPICORN_CHECK_VERSION() implementation is broken
#endif
+#define VOLATILE volatile
+