aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/sample.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-27 16:57:34 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:01:08 +0100
commit7ea3bc188df54a4dbe3026bc30ed39a5cded8fdb (patch)
tree696c78eca5f1676246fed55314c1eab67408c7f4 /src/common/sample.h
parent538a9591285bdc2604c5e05c06e4b2d776f4bdf9 (diff)
Move samples of int16_t format to sample_t, that is of type double
This prepares the correction of all levels
Diffstat (limited to 'src/common/sample.h')
-rw-r--r--src/common/sample.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/sample.h b/src/common/sample.h
new file mode 100644
index 0000000..fb578eb
--- /dev/null
+++ b/src/common/sample.h
@@ -0,0 +1,6 @@
+
+typedef double sample_t;
+
+void samples_to_int16(int16_t *spl, sample_t *samples, int length);
+void int16_to_samples(sample_t *samples, int16_t *spl, int length);
+