mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
The status variables are set explicitely in the constructor instead through one memset now, to avoid setting the SoundHandle to 0 as well (the first play() would then stop SoundHandle 0, which doesn't strike me as being correct)
svn-id: r25409
This commit is contained in:
parent
a7475dd590
commit
023591a77a
@ -64,9 +64,13 @@ static const TrackFormat TRACK_FORMATS[] = {
|
||||
|
||||
|
||||
AudioCDManager::AudioCDManager() {
|
||||
memset(&_cd, 0, sizeof(_cd));
|
||||
memset(_cachedTracks, 0, sizeof(_cachedTracks));
|
||||
memset(_trackInfo, 0, sizeof(_trackInfo));
|
||||
_cd.playing = false;
|
||||
_cd.track = 0;
|
||||
_cd.start = 0;
|
||||
_cd.duration = 0;
|
||||
_cd.numLoops = 0;
|
||||
_currentCache = 0;
|
||||
_mixer = g_system->getMixer();
|
||||
assert(_mixer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user