Correct a few warnings Visual Studio was complaining about.
Correct a few warnings Visual Studio was complaining about.


--- a/src/in_2sf/XSFPlayer_2SF.cpp
+++ b/src/in_2sf/XSFPlayer_2SF.cpp
@@ -60,7 +60,7 @@
 	unsigned filled, used;
 	uint32_t bufferbytes, cycles;
 	int xfs_load, sync_type;
-} sndifwork = {std::vector<uint8_t>(), 0, 0, 0, 0, 0, 0};
+} sndifwork = { std::vector<uint8_t>(), 0, 0, 0, 0, 0, 0 };
 
 static void SNDIFDeInit() { }
 

--- a/src/in_gsf/XSFPlayer_GSF.cpp
+++ b/src/in_gsf/XSFPlayer_GSF.cpp
@@ -52,7 +52,7 @@
 {
 	std::vector<uint8_t> rom;
 	unsigned entry;
-} loaderwork;
+} loaderwork = { std::vector<uint8_t>(), 0 };
 
 int mapgsf(uint8_t *d, int l, int &s)
 {

--- a/src/in_ncsf/SSEQPlayer/Track.h
+++ b/src/in_ncsf/SSEQPlayer/Track.h
@@ -37,7 +37,7 @@
 	int value;
 	int extraValue;
 
-	Override() : overriding(false) { }
+	Override() : overriding(false), cmd(0), value(0), extraValue(0) { }
 	bool operator()() const { return this->overriding; }
 	bool &operator()() { return this->overriding; }
 	int val(const uint8_t **pData, std::function<int (const uint8_t **)> reader, bool returnExtra = false)

--- a/src/in_ncsf/XSFConfig_NCSF.cpp
+++ b/src/in_ncsf/XSFConfig_NCSF.cpp
@@ -247,7 +247,7 @@
 	std::wstring buf;
 	for (size_t chanId = 0; chanId < 16; ++chanId)
 	{
-		auto chn = player->GetChannel(chanId);
+		const auto &chn = player->GetChannel(chanId);
 
 		if (chn.state > CS_START)
 		{

--- a/src/in_ncsf/XSFPlayer_NCSF.cpp
+++ b/src/in_ncsf/XSFPlayer_NCSF.cpp
@@ -106,14 +106,14 @@
 	return this->RecursiveLoadNCSF(this->xSF.get(), 1);
 }
 
-XSFPlayer_NCSF::XSFPlayer_NCSF(const std::string &filename) : XSFPlayer()
+XSFPlayer_NCSF::XSFPlayer_NCSF(const std::string &filename) : XSFPlayer(), sseq(0), sdatData(), sdat(), player(), secondsPerSample(0), secondsIntoPlayback(0), secondsUntilNextClock(0), mutes()
 {
 	this->uses32BitSamplesClampedTo16Bit = true;
 	this->xSF.reset(new XSFFile(filename, 8, 12));
 }
 
 #ifdef _WIN32
-XSFPlayer_NCSF::XSFPlayer_NCSF(const std::wstring &filename) : XSFPlayer()
+XSFPlayer_NCSF::XSFPlayer_NCSF(const std::wstring &filename) : XSFPlayer(), sseq(0), sdatData(), sdat(), player(), secondsPerSample(0), secondsIntoPlayback(0), secondsUntilNextClock(0), mutes()
 {
 	this->uses32BitSamplesClampedTo16Bit = true;
 	this->xSF.reset(new XSFFile(filename, 8, 12));

--- a/src/in_snsf/XSFPlayer_SNSF.cpp
+++ b/src/in_snsf/XSFPlayer_SNSF.cpp
@@ -64,7 +64,7 @@
 	std::vector<uint8_t> rom, sram;
 	bool first;
 	unsigned base;
-} loaderwork;
+} loaderwork = { std::vector<uint8_t>(), std::vector<uint8_t>(), false, 0 };
 
 class BUFFER
 {