comparison AudioPlayer.cpp @ 1104:5d5c78088274

strcmpi to stricmp conversion
author Grumpy7
date Mon, 27 May 2013 21:37:14 +0200
parents c45d51b3f4f4
children 29a8defbad9e
comparison
equal deleted inserted replaced
1103:db395ce89ede 1104:5d5c78088274
265 v24 += 120; 265 v24 += 120;
266 if ( v26 >= (signed int)sNumSounds ) 266 if ( v26 >= (signed int)sNumSounds )
267 return 0; 267 return 0;
268 } 268 }
269 v12 = 0; 269 v12 = 0;
270 while ( _strcmpi(pAudioPlayer->pSoundHeaders[v12].pSoundName, v11->pSoundName) ) 270 while ( _stricmp(pAudioPlayer->pSoundHeaders[v12].pSoundName, v11->pSoundName) )
271 { 271 {
272 ++v7; 272 ++v7;
273 ++v12; 273 ++v12;
274 if ( v7 >= (signed int)pAudioPlayer->uNumSoundHeaders ) 274 if ( v7 >= (signed int)pAudioPlayer->uNumSoundHeaders )
275 { 275 {
486 { 486 {
487 sprintf(v2->pSounds[v2->sNumSounds].pSoundName, "%s", v19.pProperties[0]); 487 sprintf(v2->pSounds[v2->sNumSounds].pSoundName, "%s", v19.pProperties[0]);
488 v9 = atoi(v19.pProperties[1]); 488 v9 = atoi(v19.pProperties[1]);
489 v10 = v19.pProperties[2]; 489 v10 = v19.pProperties[2];
490 v2->pSounds[v2->sNumSounds].uSoundID = v9; 490 v2->pSounds[v2->sNumSounds].uSoundID = v9;
491 if ( _strcmpi(v10, "system") ) 491 if ( _stricmp(v10, "system") )
492 { 492 {
493 if ( _strcmpi(v19.pProperties[2], "swap") ) 493 if ( _stricmp(v19.pProperties[2], "swap") )
494 { 494 {
495 v11 = _strcmpi(v19.pProperties[2], "lock"); 495 v11 = _stricmp(v19.pProperties[2], "lock");
496 v12 = v2->pSounds; 496 v12 = v2->pSounds;
497 v13 = v11 == 0; 497 v13 = v11 == 0;
498 v14 = v2->sNumSounds; 498 v14 = v2->sNumSounds;
499 if ( v13 ) 499 if ( v13 )
500 v12[v14].eType = SOUND_DESC_LOCK; 500 v12[v14].eType = SOUND_DESC_LOCK;
508 } 508 }
509 else 509 else
510 { 510 {
511 v2->pSounds[v2->sNumSounds].eType = SOUND_DESC_SYSTEM; 511 v2->pSounds[v2->sNumSounds].eType = SOUND_DESC_SYSTEM;
512 } 512 }
513 if ( v19.uPropCount >= 4 && !_strcmpi(v19.pProperties[3], "3D") ) 513 if ( v19.uPropCount >= 4 && !_stricmp(v19.pProperties[3], "3D") )
514 { 514 {
515 v15 = (int)&v2->pSounds[v2->sNumSounds].uFlags; 515 v15 = (int)&v2->pSounds[v2->sNumSounds].uFlags;
516 *(int *)v15 |= SOUND_DESC_SWAP; 516 *(int *)v15 |= SOUND_DESC_SWAP;
517 } 517 }
518 ++v2->sNumSounds; 518 ++v2->sNumSounds;
2574 { 2574 {
2575 v6 = v3 - v4; 2575 v6 = v3 - v4;
2576 result = &pAudioPlayer->pSoundHeaders[v6 / 2 + v4]; 2576 result = &pAudioPlayer->pSoundHeaders[v6 / 2 + v4];
2577 if ( !result ) 2577 if ( !result )
2578 return result; 2578 return result;
2579 result = (SoundHeader *)_strcmpi(pName, result->pSoundName); 2579 result = (SoundHeader *)_stricmp(pName, result->pSoundName);
2580 if ( !result ) 2580 if ( !result )
2581 uFindSound_BinSearch_ResultID = v6 / 2 + v4; 2581 uFindSound_BinSearch_ResultID = v6 / 2 + v4;
2582 if ( v4 == v10 ) 2582 if ( v4 == v10 )
2583 goto LABEL_17; 2583 goto LABEL_17;
2584 if ( (signed int)result < 0 ) 2584 if ( (signed int)result < 0 )
2589 if ( (signed int)v4 < (signed int)v10 ) 2589 if ( (signed int)v4 < (signed int)v10 )
2590 { 2590 {
2591 v9 = v4; 2591 v9 = v4;
2592 do 2592 do
2593 { 2593 {
2594 result = (SoundHeader *)_strcmpi(pName, pAudioPlayer->pSoundHeaders[v9].pSoundName); 2594 result = (SoundHeader *)_stricmp(pName, pAudioPlayer->pSoundHeaders[v9].pSoundName);
2595 if ( !result ) 2595 if ( !result )
2596 goto LABEL_24; 2596 goto LABEL_24;
2597 ++v7; 2597 ++v7;
2598 ++v9; 2598 ++v9;
2599 } 2599 }
2616 if ( (signed int)v4 >= (signed int)v10 ) 2616 if ( (signed int)v4 >= (signed int)v10 )
2617 goto LABEL_17; 2617 goto LABEL_17;
2618 v8 = v4; 2618 v8 = v4;
2619 while ( 1 ) 2619 while ( 1 )
2620 { 2620 {
2621 result = (SoundHeader *)_strcmpi(pName, pAudioPlayer->pSoundHeaders[v8].pSoundName); 2621 result = (SoundHeader *)_stricmp(pName, pAudioPlayer->pSoundHeaders[v8].pSoundName);
2622 if ( !result ) 2622 if ( !result )
2623 break; 2623 break;
2624 ++v7; 2624 ++v7;
2625 ++v8; 2625 ++v8;
2626 if ( v7 >= (signed int)v10 ) 2626 if ( v7 >= (signed int)v10 )