Add Controller::PlayAudio for Emulator

This commit is contained in:
scawful
2024-04-20 07:40:44 -04:00
parent 2de3b283cd
commit 7072c18a92
3 changed files with 16 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ class Controller : public ExperimentFlags {
absl::Status OnEntry();
void OnInput();
void OnLoad();
void PlayAudio();
void DoRender() const;
void OnExit();
@@ -61,7 +62,10 @@ class Controller : public ExperimentFlags {
friend int ::main(int argc, char **argv);
bool active_;
int wanted_samples_;
int16_t *audio_buffer_;
editor::MasterEditor master_editor_;
SDL_AudioDeviceID audio_device_;
std::shared_ptr<SDL_Window> window_;
std::shared_ptr<SDL_Renderer> renderer_;
};