summaryrefslogtreecommitdiff
path: root/src/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/audio.h b/src/audio.h
new file mode 100644
index 0000000..6205de7
--- /dev/null
+++ b/src/audio.h
@@ -0,0 +1,24 @@
+#pragma once
+
+class Sequence;
+
+struct CallbackInfo {
+ int samplesDone;
+ int samplesPerStep;
+ int currentStep;
+ int sampleRate;
+ Sequence* seq;
+};
+
+class AudioContext {
+public:
+ AudioContext(Sequence&);
+ ~AudioContext();
+
+ void Start();
+ void Stop();
+
+ int CurrentStep();
+private:
+ CallbackInfo m_info;
+}; \ No newline at end of file