blob: ca77a53db42bb9abd17f07463b55a6a78372f732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <math.h>
#include <stdint.h>
#include <stddef.h>
#define NUMOF(l) (sizeof(l) / sizeof(*l))
#define linear_to_dB(x) (log10(x) * 20)
/*! Calculate the little string containing a bargraph
* 'VU-meter' from the peak value measured
*/
const char* level(int channel, int peak);
size_t strlen_utf8(const char *s);
|