comparison AudioPlayer.cpp @ 322:ce39b96acf5c

Killing friendly peasants subs
author Nomad
date Wed, 20 Feb 2013 04:36:14 +0200
parents e3fd201a58f0
children 8e23edf57e27
comparison
equal deleted inserted replaced
321:15decc249a94 322:ce39b96acf5c
1195 v26 = pRenderVertexSoft.vWorldViewPosition.x * 0.012207031; 1195 v26 = pRenderVertexSoft.vWorldViewPosition.x * 0.012207031;
1196 *(float *)&uVolume = v26; 1196 *(float *)&uVolume = v26;
1197 v27 = abs((signed __int64)v26); 1197 v27 = abs((signed __int64)v26);
1198 v28 = abs((signed __int64)v93); 1198 v28 = abs((signed __int64)v93);
1199 v29 = abs((signed __int64)*(float *)&varC); 1199 v29 = abs((signed __int64)*(float *)&varC);
1200 v90 = sub_4621DA(v29, v28, v27); 1200 v90 = int_get_vector_length(v29, v28, v27);
1201 sPlaybackRate = v12; 1201 sPlaybackRate = v12;
1202 if ( v12 > v25 ) 1202 if ( v12 > v25 )
1203 goto LABEL_192; 1203 goto LABEL_192;
1204 pAudioPlayer_3DSample2 = &pAudioPlayer->p3DSamples[v12]; 1204 pAudioPlayer_3DSample2 = &pAudioPlayer->p3DSamples[v12];
1205 do 1205 do
1206 { 1206 {
1207 AIL_3D_position(pAudioPlayer_3DSample2->hSample, &varC, &v93, (long *)&uVolume); 1207 AIL_3D_position(pAudioPlayer_3DSample2->hSample, &varC, &v93, (long *)&uVolume);
1208 v31 = abs((signed __int64)*(float *)&uVolume); 1208 v31 = abs((signed __int64)*(float *)&uVolume);
1209 v32 = abs((signed __int64)v93); 1209 v32 = abs((signed __int64)v93);
1210 v33 = abs((signed __int64)*(float *)&varC); 1210 v33 = abs((signed __int64)*(float *)&varC);
1211 v34 = sub_4621DA(v33, v32, v31); 1211 v34 = int_get_vector_length(v33, v32, v31);
1212 v35 = v103 == v34; 1212 v35 = v103 == v34;
1213 if ( v103 < v34 ) 1213 if ( v103 < v34 )
1214 { 1214 {
1215 v103 = v34; 1215 v103 = v34;
1216 v35 = 1; 1216 v35 = 1;
1285 v49 = pRenderVertexSoft.vWorldViewPosition.x * 0.012207031; 1285 v49 = pRenderVertexSoft.vWorldViewPosition.x * 0.012207031;
1286 uNumRepeatsa = v49; 1286 uNumRepeatsa = v49;
1287 v50 = abs((signed __int64)v49); 1287 v50 = abs((signed __int64)v49);
1288 v51 = abs(0); 1288 v51 = abs(0);
1289 v52 = abs((signed __int64)v99); 1289 v52 = abs((signed __int64)v99);
1290 if ( sub_4621DA(v52, v51, v50) <= 100 ) 1290 if ( int_get_vector_length(v52, v51, v50) <= 100 )
1291 { 1291 {
1292 AIL_set_3D_position((void *)*(int *)v42, LODWORD(v99), 0.0, LODWORD(uNumRepeatsa)); 1292 AIL_set_3D_position((void *)*(int *)v42, LODWORD(v99), 0.0, LODWORD(uNumRepeatsa));
1293 v53 = -uNumRepeatsa; 1293 v53 = -uNumRepeatsa;
1294 v54 = -v99; 1294 v54 = -v99;
1295 AIL_set_3D_orientation((void *)*(int *)v42, LODWORD(v54), 0.0, LODWORD(v53), 0.0, 1.0, 0.0); 1295 AIL_set_3D_orientation((void *)*(int *)v42, LODWORD(v54), 0.0, LODWORD(v53), 0.0, 1.0, 0.0);
1557 v22 = a1.vWorldViewPosition.x * 0.012207031; 1557 v22 = a1.vWorldViewPosition.x * 0.012207031;
1558 *(float *)&uNumRepeats = v22; 1558 *(float *)&uNumRepeats = v22;
1559 v23 = abs((signed __int64)v22); 1559 v23 = abs((signed __int64)v22);
1560 v24 = abs(0); 1560 v24 = abs(0);
1561 v25 = abs((signed __int64)v58); 1561 v25 = abs((signed __int64)v58);
1562 if ( sub_4621DA(v25, v24, v23) <= 100 ) 1562 if ( int_get_vector_length(v25, v24, v23) <= 100 )
1563 { 1563 {
1564 AIL_set_3D_position(v6->hSample, LODWORD(v58), 0.0, uNumRepeats); 1564 AIL_set_3D_position(v6->hSample, LODWORD(v58), 0.0, uNumRepeats);
1565 v26 = -*(float *)&uNumRepeats; 1565 v26 = -*(float *)&uNumRepeats;
1566 v27 = -v58; 1566 v27 = -v58;
1567 AIL_set_3D_orientation(v6->hSample, LODWORD(v27), 0.0, LODWORD(v26), 0.0, 1.0, 0.0); 1567 AIL_set_3D_orientation(v6->hSample, LODWORD(v27), 0.0, LODWORD(v26), 0.0, 1.0, 0.0);
1688 v43 = 4 * v59 + 6817720; 1688 v43 = 4 * v59 + 6817720;
1689 v44 = &pLevelDecorations[_6807B8_level_decorations_ids[v59]]; 1689 v44 = &pLevelDecorations[_6807B8_level_decorations_ids[v59]];
1690 v45 = abs(v44->vPosition.z - pParty->vPosition.z); 1690 v45 = abs(v44->vPosition.z - pParty->vPosition.z);
1691 v46 = abs(v44->vPosition.y - pParty->vPosition.y); 1691 v46 = abs(v44->vPosition.y - pParty->vPosition.y);
1692 v47 = abs(v44->vPosition.x - pParty->vPosition.x); 1692 v47 = abs(v44->vPosition.x - pParty->vPosition.x);
1693 if ( sub_4621DA(v47, v46, v45) <= 8192 ) 1693 if ( int_get_vector_length(v47, v46, v45) <= 8192 )
1694 break; 1694 break;
1695 LABEL_89: 1695 LABEL_89:
1696 ++v59; 1696 ++v59;
1697 if ( v59 >= _6807E0_num_decorations_with_sounds_6807B8 ) 1697 if ( v59 >= _6807E0_num_decorations_with_sounds_6807B8 )
1698 return; 1698 return;
1770 int v3; // esi@1 1770 int v3; // esi@1
1771 int v4; // edi@1 1771 int v4; // edi@1
1772 int v5; // ST08_4@1 1772 int v5; // ST08_4@1
1773 int v6; // esi@1 1773 int v6; // esi@1
1774 int v7; // eax@1 1774 int v7; // eax@1
1775 int result; // eax@2
1776 int v9; // [sp+10h] [bp+8h]@1 1775 int v9; // [sp+10h] [bp+8h]@1
1777 1776
1778 v3 = a2; 1777 v3 = a2;
1779 v4 = a1; 1778 v4 = a1;
1780 v5 = abs(a3 - pParty->vPosition.z); 1779 v5 = abs(a3 - pParty->vPosition.z);
1781 v6 = abs(v3 - pParty->vPosition.y); 1780 v6 = abs(v3 - pParty->vPosition.y);
1782 v7 = abs(v4 - pParty->vPosition.x); 1781 v7 = abs(v4 - pParty->vPosition.x);
1783 v9 = sub_4621DA(v7, v6, v5); 1782 v9 = int_get_vector_length(v7, v6, v5);
1784 if ( v9 <= 8192 ) 1783 if ( v9 <= 8192 )
1785 result = 114 - (unsigned __int64)(signed __int64)((double)v9 * 0.0001220703125 * 100.0); 1784 return 114 - (unsigned __int64)(signed __int64)((double)v9 * 0.0001220703125 * 100.0);
1786 else 1785 else
1787 result = 0; 1786 return 0;
1788 return result;
1789 } 1787 }
1790 1788
1791 1789
1792 1790
1793 //----- (004AB71F) -------------------------------------------------------- 1791 //----- (004AB71F) --------------------------------------------------------