diff options
author | cflip <cflip@cflip.net> | 2021-12-22 15:20:13 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2021-12-22 15:20:13 -0700 |
commit | 8844d54b4bd5535009a1b70888860490899ca0d5 (patch) | |
tree | a03cb2a663299f3bc61f5d981560c5e84e36a483 /audio.h | |
parent | d3fcd2d8dbff9362b47ab94c8b4cc24826077591 (diff) |
Refactoring and cleanup
Diffstat (limited to 'audio.h')
-rw-r--r-- | audio.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 |