From 8844d54b4bd5535009a1b70888860490899ca0d5 Mon Sep 17 00:00:00 2001 From: cflip Date: Wed, 22 Dec 2021 15:20:13 -0700 Subject: Refactoring and cleanup --- audio.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 audio.h (limited to 'audio.h') diff --git a/audio.h b/audio.h new file mode 100644 index 0000000..6205de7 --- /dev/null +++ b/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 -- cgit v1.2.3