]> Shamusworld >> Repos - virtualjaguar/commitdiff
Fixed DSP/audio options to be unambiguous and consistent.
authorShamus Hammons <jlhamm@acm.org>
Mon, 16 Jul 2012 04:10:40 +0000 (23:10 -0500)
committerShamus Hammons <jlhamm@acm.org>
Mon, 16 Jul 2012 04:10:40 +0000 (23:10 -0500)
The DSP is now running in the host audio IRQ, so turning it off will
turn off the host audio IRQ as well. Also fixed DAC to reflect this
change. Added a few minor fixups to a few files as well.

.gitignore
cross-compile
src/dac.cpp
src/gui/configdialog.cpp
src/gui/generaltab.cpp
src/gui/mainwin.cpp
src/op.cpp

index 23d2d3aab2e8a13739cb67546d634eedf61dd8aa..9d442ad71f1280d040009256f755aeccddebbe7c 100644 (file)
@@ -3,3 +3,9 @@ obj/
 src/m68000/obj/
 src/version.h
 virtualjaguar
+virtualjaguar.log
+src/*~
+src/m68000/*~
+eeproms/*.eep
+software/
+*~
index ef4b6908f438b70a363dce8414d30674b9aad6ba..896ef11243d1fe2fc66b6f1f5dca0bcf068ae883 100755 (executable)
@@ -10,5 +10,5 @@ export PATH=/opt/mxe/usr/bin:$PATH
 rm makefile-qt
 make CROSS=i686-pc-mingw32-
 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
-#rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
+rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
 cd release && upx -9v virtualjaguar.exe && zip -9v vj-$rel.zip virtualjaguar.exe
index 6f9b5a8e57b01d393ec005fae3b2697644311885..7cc3740a6a51d99d01261ce97c1063c93ec5d33d 100644 (file)
@@ -97,9 +97,10 @@ void DACInit(void)
 {
        SDLSoundInitialized = false;
 
-       if (!vjs.audioEnabled)
+//     if (!vjs.audioEnabled)
+       if (!vjs.DSPEnabled)
        {
-               WriteLog("DAC: Host audio playback disabled.\n");
+               WriteLog("DAC: DSP/host audio playback disabled.\n");
                return;
        }
 
index 709940c3f4a63efafbefec3743b74923e394e78e..1fd8be49c5230ed1a66f53e3f954777f51cd02e3 100644 (file)
@@ -70,7 +70,7 @@ void ConfigDialog::LoadDialogFromSettings(void)
        generalTab->useBIOS->setChecked(vjs.useJaguarBIOS);
        generalTab->useGPU->setChecked(vjs.GPUEnabled);
        generalTab->useDSP->setChecked(vjs.DSPEnabled);
-       generalTab->useHostAudio->setChecked(vjs.audioEnabled);
+//     generalTab->useHostAudio->setChecked(vjs.audioEnabled);
 
        if (vjs.hardwareTypeAlpine)
        {
@@ -98,7 +98,7 @@ void ConfigDialog::UpdateVJSettings(void)
        vjs.useJaguarBIOS = generalTab->useBIOS->isChecked();
        vjs.GPUEnabled    = generalTab->useGPU->isChecked();
        vjs.DSPEnabled    = generalTab->useDSP->isChecked();
-       vjs.audioEnabled  = generalTab->useHostAudio->isChecked();
+//     vjs.audioEnabled  = generalTab->useHostAudio->isChecked();
 
        if (vjs.hardwareTypeAlpine)
        {
index c71b1c30048f125fe1e3c38bfe4509d5b8526e32..050cfff4290e2c04918479ac313af5250574fa4c 100644 (file)
@@ -19,17 +19,17 @@ GeneralTab::GeneralTab(QWidget * parent/*= 0*/): QWidget(parent)
 // I'm thinking we should scan the bios folder for the 5 known BIOSes, and
 // just present a radio button to choose between them...
 // (BIOS is built-in now...)
-       QLabel * label1 = new QLabel("Boot ROM:");
-       QLabel * label2 = new QLabel("CD Boot ROM:");
+//     QLabel * label1 = new QLabel("Boot ROM:");
+//     QLabel * label2 = new QLabel("CD Boot ROM:");
        QLabel * label3 = new QLabel("EEPROMs:");
        QLabel * label4 = new QLabel("Software:");
 
-       edit1 = new QLineEdit("");
-       edit2 = new QLineEdit("");
+//     edit1 = new QLineEdit("");
+//     edit2 = new QLineEdit("");
        edit3 = new QLineEdit("");
        edit4 = new QLineEdit("");
-       edit1->setPlaceholderText("Boot ROM location");
-       edit2->setPlaceholderText("CD Boot ROM location");
+//     edit1->setPlaceholderText("Boot ROM location");
+//     edit2->setPlaceholderText("CD Boot ROM location");
        edit3->setPlaceholderText("EEPROM path");
        edit4->setPlaceholderText("Software path");
 
@@ -56,13 +56,13 @@ GeneralTab::GeneralTab(QWidget * parent/*= 0*/): QWidget(parent)
        useBIOS            = new QCheckBox(tr("Enable Jaguar BIOS"));
        useGPU             = new QCheckBox(tr("Enable GPU"));
        useDSP             = new QCheckBox(tr("Enable DSP"));
-       useHostAudio       = new QCheckBox(tr("Enable audio playback (requires DSP)"));
+//     useHostAudio       = new QCheckBox(tr("Enable audio playback (requires DSP)"));
        useUnknownSoftware = new QCheckBox(tr("Show all files in file chooser"));
 
        layout4->addWidget(useBIOS);
        layout4->addWidget(useGPU);
        layout4->addWidget(useDSP);
-       layout4->addWidget(useHostAudio);
+//     layout4->addWidget(useHostAudio);
        layout4->addWidget(useUnknownSoftware);
 
        setLayout(layout4);
index c0a0f46e2c8dcbfca6b740ba731201affd683640..43996880984c307d46bfe1406dc45fe2c75fe83d 100644 (file)
@@ -455,12 +455,14 @@ void MainWin::Configure(void)
        QString before = vjs.ROMPath;
        QString alpineBefore = vjs.alpineROMPath;
        QString absBefore = vjs.absROMPath;
-       bool audioBefore = vjs.audioEnabled;
+//     bool audioBefore = vjs.audioEnabled;
+       bool audioBefore = vjs.DSPEnabled;
        dlg.UpdateVJSettings();
        QString after = vjs.ROMPath;
        QString alpineAfter = vjs.alpineROMPath;
        QString absAfter = vjs.absROMPath;
-       bool audioAfter = vjs.audioEnabled;
+//     bool audioAfter = vjs.audioEnabled;
+       bool audioAfter = vjs.DSPEnabled;
 
        bool allowOld = allowUnknownSoftware;
        //ick.
@@ -497,7 +499,8 @@ void MainWin::Configure(void)
                }
        }
 
-       // If the "Enable audio" checkbox changed, then we have to re-init the DAC...
+       // If the "Enable DSP" checkbox changed, then we have to re-init the DAC,
+       // since it's running in the host audio IRQ...
        if (audioBefore != audioAfter)
        {
                DACDone();
index 8ae2eb5a437ac33dee0f417b0bee42aef77bb067..8708d9b34418c81a28ca6f279f5a81e65a51d953 100644 (file)
@@ -180,6 +180,7 @@ void OPDone(void)
 
        WriteLog("\n");
 #else
+#warning "!!! Fix lockup in OPDiscoverObjects() !!!"
 //temp, to keep the following function from locking up on bad/weird OLs
 return;