SAA1099: implement SAASound core option
This commit is contained in:
parent
2f766553e8
commit
9ea510c351
5 changed files with 96 additions and 5 deletions
|
|
@ -3648,6 +3648,11 @@ const char* ym2612Cores[]={
|
|||
"ymfm"
|
||||
};
|
||||
|
||||
const char* saaCores[]={
|
||||
"MAME",
|
||||
"SAASound"
|
||||
};
|
||||
|
||||
#define SAMPLE_RATE_SELECTABLE(x) \
|
||||
if (ImGui::Selectable(#x,settings.audioRate==x)) { \
|
||||
settings.audioRate=x; \
|
||||
|
|
@ -3810,14 +3815,18 @@ void FurnaceGUI::drawSettings() {
|
|||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("Emulation")) {
|
||||
ImGui::Text("Arcade core");
|
||||
ImGui::Text("Arcade/YM2151 core");
|
||||
ImGui::SameLine();
|
||||
ImGui::Combo("##ArcadeCore",&settings.arcadeCore,arcadeCores,2);
|
||||
|
||||
ImGui::Text("Genesis core");
|
||||
ImGui::Text("Genesis/YM2612 core");
|
||||
ImGui::SameLine();
|
||||
ImGui::Combo("##YM2612Core",&settings.ym2612Core,ym2612Cores,2);
|
||||
|
||||
ImGui::Text("SAA1099 core");
|
||||
ImGui::SameLine();
|
||||
ImGui::Combo("##SAACore",&settings.saaCore,saaCores,2);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("Appearance")) {
|
||||
|
|
@ -4220,6 +4229,7 @@ void FurnaceGUI::syncSettings() {
|
|||
settings.audioRate=e->getConfInt("audioRate",44100);
|
||||
settings.arcadeCore=e->getConfInt("arcadeCore",0);
|
||||
settings.ym2612Core=e->getConfInt("ym2612Core",0);
|
||||
settings.saaCore=e->getConfInt("saaCore",0);
|
||||
settings.mainFont=e->getConfInt("mainFont",0);
|
||||
settings.patFont=e->getConfInt("patFont",0);
|
||||
settings.mainFontPath=e->getConfString("mainFontPath","");
|
||||
|
|
@ -4408,6 +4418,7 @@ void FurnaceGUI::commitSettings() {
|
|||
e->setConf("audioRate",settings.audioRate);
|
||||
e->setConf("arcadeCore",settings.arcadeCore);
|
||||
e->setConf("ym2612Core",settings.ym2612Core);
|
||||
e->setConf("saaCore",settings.saaCore);
|
||||
e->setConf("mainFont",settings.mainFont);
|
||||
e->setConf("patFont",settings.patFont);
|
||||
e->setConf("mainFontPath",settings.mainFontPath);
|
||||
|
|
|
|||
|
|
@ -381,6 +381,7 @@ class FurnaceGUI {
|
|||
int audioQuality;
|
||||
int arcadeCore;
|
||||
int ym2612Core;
|
||||
int saaCore;
|
||||
int mainFont;
|
||||
int patFont;
|
||||
int audioRate;
|
||||
|
|
@ -416,6 +417,7 @@ class FurnaceGUI {
|
|||
audioQuality(0),
|
||||
arcadeCore(0),
|
||||
ym2612Core(0),
|
||||
saaCore(0),
|
||||
mainFont(0),
|
||||
patFont(0),
|
||||
audioRate(44100),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue