diff --git a/pcsx2/SPU2/SndOut_Cubeb.cpp b/pcsx2/SPU2/SndOut_Cubeb.cpp index dd3bb0adc3..69b1d74a7a 100644 --- a/pcsx2/SPU2/SndOut_Cubeb.cpp +++ b/pcsx2/SPU2/SndOut_Cubeb.cpp @@ -53,7 +53,7 @@ private: public: ConvertedSampleReader() = delete; - ConvertedSampleReader(u64* pWritten) + explicit ConvertedSampleReader(u64* pWritten) : written(pWritten) { } diff --git a/pcsx2/SPU2/SndOut_XAudio2.cpp b/pcsx2/SPU2/SndOut_XAudio2.cpp index 50ed0d11c5..b9a712974d 100644 --- a/pcsx2/SPU2/SndOut_XAudio2.cpp +++ b/pcsx2/SPU2/SndOut_XAudio2.cpp @@ -57,7 +57,7 @@ private: return state.SamplesPlayed & (m_BufferSize - 1); } - BaseStreamingVoice(uint numChannels) + explicit BaseStreamingVoice(uint numChannels) : m_nBuffers(2) , m_nChannels(numChannels) , m_BufferSize(SndOutPacketSize * m_nChannels * PacketsPerBuffer)