Fixed uninitialized variable accesses

This commit is contained in:
Sour 2018-01-07 09:44:43 -05:00
parent 3c478d1f58
commit f044e2b57f
3 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ public:
{
_channel = channel;
_mixer = mixer;
_nesModel = NesModel::NTSC;
Reset(false);
}

View file

@ -51,7 +51,7 @@ class Console
unique_ptr<HdPackData> _hdData;
unique_ptr<HdAudioDevice> _hdAudioDevice;
NesModel _model;
NesModel _model = NesModel::NTSC;
string _romFilepath;
string _patchFilename;

View file

@ -25,6 +25,7 @@ SoundMixer::SoundMixer()
_blipBufRight = blip_new(SoundMixer::MaxSamplesPerFrame);
_sampleRate = EmulationSettings::GetSampleRate();
_model = NesModel::NTSC;
_clockRate = CPU::GetClockRate(_model);
Reset();
}