summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-20 08:49:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-20 08:49:29 +0200
commit7102f830e01c3d4d695c0d36608cb09064e4aedc (patch)
tree5b0bbb2a9fff3af44c4b0a7c88b96edfd3675a39 /src/common.h
parent3b68a6188b4983816833dc9a20be4f6b74f4c03f (diff)
downloadODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.tar.gz
ODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.tar.bz2
ODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.zip
Move outputs to a separate file
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index cd856f4..774a4a0 100644
--- a/src/common.h
+++ b/src/common.h
@@ -16,8 +16,7 @@
* -------------------------------------------------------------------
*/
-#ifndef __COMMON_H_
-#define __COMMON_H_
+#pragma once
// 16 bits per sample is fine for now
#define BYTES_PER_SAMPLE 2
@@ -25,5 +24,9 @@
// How many samples we insert into the queue each call
#define NUM_SAMPLES_PER_CALL 10 // 10 samples @ 32kHz = 3.125ms
-#endif // __COMMON_H_
+//! Enumeration of encoders we can use
+enum class encoder_selection_t {
+ fdk_dabplus,
+ toolame_dab
+};