summaryrefslogtreecommitdiffhomepage
path: root/audioio.h
diff options
context:
space:
mode:
Diffstat (limited to 'audioio.h')
-rw-r--r--audioio.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/audioio.h b/audioio.h
new file mode 100644
index 0000000..0200964
--- /dev/null
+++ b/audioio.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <complex>
+#include <vector>
+
+namespace RIT {
+
+class AudioIO {
+public:
+ AudioIO();
+ ~AudioIO();
+ std::vector<std::complex<double>> sample();
+ int size() const;
+ int sampleFrequency() const;
+
+private:
+ struct Impl;
+ std::unique_ptr<Impl> mImpl;
+};
+
+} // namespace RIT