July 2017
Beginner to intermediate
390 pages
10h 53m
English
We need to be sure we are cleaning up after ourselves. The Dispose method should look as follows:
protected void Dispose(bool isDisposing){ if (isDisposing) { _audioBuffer = null; _waveFormat = null; _soundStream.Dispose(); _soundStream = null; _masteringVoice.Dispose(); _masteringVoice = null; _xaudio.Dispose(); _xaudio = null; }}
Read now
Unlock full access