Add SNES::SetSamples and accessors for snes object
This commit is contained in:
@@ -69,6 +69,9 @@ class Emulator : public SharedRom {
|
||||
}
|
||||
void Run();
|
||||
|
||||
auto snes() -> SNES& { return snes_; }
|
||||
auto running() const -> bool { return running_; }
|
||||
|
||||
private:
|
||||
void RenderNavBar();
|
||||
void HandleEvents();
|
||||
|
||||
@@ -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 app
|
||||
} // namespace yaze
|
||||
@@ -57,6 +57,8 @@ class SNES : public DirectMemoryAccess {
|
||||
void SaveState(const std::string& path);
|
||||
void LoadState(const std::string& path);
|
||||
|
||||
void SetSamples(int16_t* sample_data, int wanted_samples);
|
||||
|
||||
bool running() const { return running_; }
|
||||
|
||||
auto cpu() -> Cpu& { return cpu_; }
|
||||
|
||||
Reference in New Issue
Block a user