Mercurial > mm7
comparison AudioPlayer.cpp @ 1205:8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
author | Grumpy7 |
---|---|
date | Sun, 09 Jun 2013 00:30:48 +0200 |
parents | 0dbf6c4dd029 |
children | 0aeac0b9ca30 |
comparison
equal
deleted
inserted
replaced
1204:832f09144726 | 1205:8c02e6f74b29 |
---|---|
2411 //----- (004ABFDB) -------------------------------------------------------- | 2411 //----- (004ABFDB) -------------------------------------------------------- |
2412 void __cdecl PlayLevelMusic() | 2412 void __cdecl PlayLevelMusic() |
2413 { | 2413 { |
2414 unsigned int v0; // eax@1 | 2414 unsigned int v0; // eax@1 |
2415 | 2415 |
2416 v0 = pMapStats->GetMapInfo(pCurrentMapName); | 2416 v0 = pMapStats->GetMapInfo(pCurrentMapName.data()); |
2417 if ( v0 ) | 2417 if ( v0 ) |
2418 pAudioPlayer->PlayMusicTrack((MusicID)pMapStats->pInfos[v0].uRedbookTrackID); | 2418 pAudioPlayer->PlayMusicTrack((MusicID)pMapStats->pInfos[v0].uRedbookTrackID); |
2419 } | 2419 } |
2420 | 2420 |
2421 //----- (004AC004) -------------------------------------------------------- | 2421 //----- (004AC004) -------------------------------------------------------- |
2445 AudioPlayer *v1; // esi@1 | 2445 AudioPlayer *v1; // esi@1 |
2446 unsigned int v2; // eax@1 | 2446 unsigned int v2; // eax@1 |
2447 int v3; // [sp+4h] [bp-4h]@3 | 2447 int v3; // [sp+4h] [bp-4h]@3 |
2448 | 2448 |
2449 v1 = this; | 2449 v1 = this; |
2450 v2 = pMapStats->GetMapInfo(pCurrentMapName); | 2450 v2 = pMapStats->GetMapInfo(pCurrentMapName.data()); |
2451 if ( v1->b3DSoundInitialized && v1->bEAXSupported ) | 2451 if ( v1->b3DSoundInitialized && v1->bEAXSupported ) |
2452 { | 2452 { |
2453 v3 = pMapStats->pInfos[v2].uEAXEnv; | 2453 v3 = pMapStats->pInfos[v2].uEAXEnv; |
2454 if ( (unsigned int)v3 >= 0x1A ) | 2454 if ( (unsigned int)v3 >= 0x1A ) |
2455 { | 2455 { |
2480 unsigned int v11; // eax@14 | 2480 unsigned int v11; // eax@14 |
2481 int v12; // [sp+1Ch] [bp-8h]@1 | 2481 int v12; // [sp+1Ch] [bp-8h]@1 |
2482 int v13; // [sp+20h] [bp-4h]@6 | 2482 int v13; // [sp+20h] [bp-4h]@6 |
2483 | 2483 |
2484 v1 = this; | 2484 v1 = this; |
2485 v2 = pMapStats->GetMapInfo(pCurrentMapName); | 2485 v2 = pMapStats->GetMapInfo(pCurrentMapName.data()); |
2486 v3 = v1->b3DSoundInitialized == 0; | 2486 v3 = v1->b3DSoundInitialized == 0; |
2487 v4 = v2; | 2487 v4 = v2; |
2488 v12 = v2; | 2488 v12 = v2; |
2489 if ( !v3 ) | 2489 if ( !v3 ) |
2490 { | 2490 { |