Add SNES::SetSamples and accessors for snes object

This commit is contained in:
scawful
2024-04-20 07:40:27 -04:00
parent c6df32ffe8
commit 2de3b283cd
3 changed files with 9 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ class Emulator : public SharedRom {
} }
void Run(); void Run();
auto snes() -> SNES& { return snes_; }
auto running() const -> bool { return running_; }
private: private:
void RenderNavBar(); void RenderNavBar();
void HandleEvents(); void HandleEvents();

View File

@@ -349,6 +349,10 @@ void SNES::LoadState(const std::string& path) {
// ... // ...
} }
void SNES::SetSamples(int16_t* sample_data, int wanted_samples) {
// Set the samples in the apu
}
} // namespace emu } // namespace emu
} // namespace app } // namespace app
} // namespace yaze } // namespace yaze

View File

@@ -57,6 +57,8 @@ class SNES : public DirectMemoryAccess {
void SaveState(const std::string& path); void SaveState(const std::string& path);
void LoadState(const std::string& path); void LoadState(const std::string& path);
void SetSamples(int16_t* sample_data, int wanted_samples);
bool running() const { return running_; } bool running() const { return running_; }
auto cpu() -> Cpu& { return cpu_; } auto cpu() -> Cpu& { return cpu_; }