Fixed uninitialized variable accesses
This commit is contained in:
parent
3c478d1f58
commit
f044e2b57f
3 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ public:
|
|||
{
|
||||
_channel = channel;
|
||||
_mixer = mixer;
|
||||
_nesModel = NesModel::NTSC;
|
||||
|
||||
Reset(false);
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ class Console
|
|||
unique_ptr<HdPackData> _hdData;
|
||||
unique_ptr<HdAudioDevice> _hdAudioDevice;
|
||||
|
||||
NesModel _model;
|
||||
NesModel _model = NesModel::NTSC;
|
||||
|
||||
string _romFilepath;
|
||||
string _patchFilename;
|
||||
|
|
|
@ -25,6 +25,7 @@ SoundMixer::SoundMixer()
|
|||
_blipBufRight = blip_new(SoundMixer::MaxSamplesPerFrame);
|
||||
_sampleRate = EmulationSettings::GetSampleRate();
|
||||
_model = NesModel::NTSC;
|
||||
_clockRate = CPU::GetClockRate(_model);
|
||||
|
||||
Reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue