Mercurial > mm7
comparison AudioPlayer.cpp @ 2412:e7a551f458e1
LoadSound - cause of the crash exe file
author | Ritor1 |
---|---|
date | Wed, 16 Jul 2014 17:22:12 +0600 |
parents | 6997e2ad913b |
children | f4af3b203f65 |
comparison
equal
deleted
inserted
replaced
2411:4106678916e1 | 2412:e7a551f458e1 |
---|---|
83 { | 83 { |
84 sprintf(pSoundName, "%s", pSL_Sounds[i].pSoundName); | 84 sprintf(pSoundName, "%s", pSL_Sounds[i].pSoundName); |
85 pSoundDesc = &pSoundList->pSL_Sounds[i]; | 85 pSoundDesc = &pSoundList->pSL_Sounds[i]; |
86 if ( pSoundList->pSL_Sounds[i].eType != SOUND_DESC_SYSTEM ) | 86 if ( pSoundList->pSL_Sounds[i].eType != SOUND_DESC_SYSTEM ) |
87 continue; | 87 continue; |
88 sprintf(pSoundName, "%s", pSL_Sounds[i].pSoundName); | 88 pSoundList->pSL_Sounds[i].pSoundData[0] = ::LoadSound(pSoundName, (SoundData *)-1, pSL_Sounds[i].uSoundID); // Ritor result crash exe file |
89 pSoundList->pSL_Sounds[i].pSoundData[0] = ::LoadSound(pSoundName, (SoundData *)-1, pSL_Sounds[i].uSoundID); | |
90 if ( !pAudioPlayer->b3DSoundInitialized ) | 89 if ( !pAudioPlayer->b3DSoundInitialized ) |
91 continue; | 90 continue; |
92 pSoundDesc = &pSoundList->pSL_Sounds[i]; | 91 pSoundDesc = &pSoundList->pSL_Sounds[i]; |
93 if ( !(pSoundDesc->uFlags & SOUND_DESC_SWAP) || !pSoundDesc->pSoundData[0] ) | 92 if ( !(pSoundDesc->uFlags & SOUND_DESC_SWAP) || !pSoundDesc->pSoundData[0] ) |
94 continue; | 93 continue; |