diff --git a/code/TabSI.cpp b/code/TabSI.cpp index 742bde5..4e88148 100644 --- a/code/TabSI.cpp +++ b/code/TabSI.cpp @@ -2214,7 +2214,7 @@ bool TabSI::loadPage(gdioutput& gdi) { readoutFunctionY = gdi.getCY(); gdi.dropLine(0.3); - gdi.addCheckbox("PlaySound", "Ljud", SportIdentCB, oe->getPropertyInt("PlaySound", 1) != 0, + gdi.addCheckbox("PlaySound", "Ljud", SportIdentCB, oe->getPropertyInt("PlaySound", 0) != 0, "Spela upp ett ljud för att indikera resultatet av brickavläsningen."); gdi.dropLine(-0.3); @@ -5076,7 +5076,7 @@ bool TabSI::showDatabase() const { } void TabSI::playReadoutSound(SND type) { - if (!oe->getPropertyInt("PlaySound", 1)) + if (!oe->getPropertyInt("PlaySound", 0)) return; int res = -1; wstring fn; diff --git a/code/oEvent.cpp b/code/oEvent.cpp index 7dc10cb..aca287f 100644 --- a/code/oEvent.cpp +++ b/code/oEvent.cpp @@ -461,6 +461,7 @@ void oEvent::initProperties() { getPropertyInt("UseEventorUTC", 0); getPropertyInt("UseHourFormat", 1); getPropertyInt("NameMode", LastFirst); + getPropertyInt("PlaySound", 0); } void oEvent::listProperties(bool userProps, vector< pair > &propNames) const {