Mercurial > mm7
comparison mm7_5.cpp @ 328:8e23edf57e27
little fix
author | Ritor1 |
---|---|
date | Wed, 20 Feb 2013 17:37:33 +0600 |
parents | ce39b96acf5c |
children | 405d0c4dd1b3 ea55d6414029 |
comparison
equal
deleted
inserted
replaced
327:a7f15da53e82 | 328:8e23edf57e27 |
---|---|
929 v153 = (int)pBtn_SliderLeft; | 929 v153 = (int)pBtn_SliderLeft; |
930 //LABEL_136: | 930 //LABEL_136: |
931 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); | 931 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); |
932 //goto LABEL_143; | 932 //goto LABEL_143; |
933 if ( uMusicVolimeMultiplier ) | 933 if ( uMusicVolimeMultiplier ) |
934 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, | 934 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0f, 0); |
935 (signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0), 0); | 935 pAudioPlayer->SetMusicVolume(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0f); |
936 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0)); | |
937 continue; | 936 continue; |
938 } | 937 } |
939 if ( uMessageParam == 5 ) | 938 if ( uMessageParam == 5 ) |
940 { | 939 { |
941 ++uMusicVolimeMultiplier; | 940 ++uMusicVolimeMultiplier; |
946 v153 = (int)pBtn_SliderRight; | 945 v153 = (int)pBtn_SliderRight; |
947 //goto LABEL_136; | 946 //goto LABEL_136; |
948 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); | 947 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); |
949 //goto LABEL_143; | 948 //goto LABEL_143; |
950 if ( uMusicVolimeMultiplier ) | 949 if ( uMusicVolimeMultiplier ) |
951 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, | 950 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0f, 0); |
952 (signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0), 0); | 951 pAudioPlayer->SetMusicVolume(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0f); |
953 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0)); | |
954 continue; | 952 continue; |
955 } | 953 } |
956 uMusicVolimeMultiplier = (pMouse->GetCursorPos(&v202)->x - 263) / 17; | 954 uMusicVolimeMultiplier = (pMouse->GetCursorPos(&v202)->x - 263) / 17; |
957 if ( (char)uMusicVolimeMultiplier > 9 ) | 955 if ( (char)uMusicVolimeMultiplier > 9 ) |
958 uMusicVolimeMultiplier = 9; | 956 uMusicVolimeMultiplier = 9; |
959 //LABEL_143: | 957 //LABEL_143: |
960 if ( uMusicVolimeMultiplier ) | 958 if ( uMusicVolimeMultiplier ) |
961 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, | 959 pAudioPlayer->PlaySound(SOUND_Bell, -1, 0, -1, 0, 0, pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0f, 0); |
962 (signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0), 0); | 960 pAudioPlayer->SetMusicVolume(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0f); |
963 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[(char)uMusicVolimeMultiplier] * 64.0)); | |
964 continue; | 961 continue; |
965 case UIMSG_ChangeSoundVolume: | 962 case UIMSG_ChangeSoundVolume: |
966 if ( uMessageParam == 4 ) | 963 if ( uMessageParam == 4 )//reduce sound level |
967 { | 964 { |
968 --uSoundVolumeMultiplier; | 965 --uSoundVolumeMultiplier; |
969 if ( (char)uSoundVolumeMultiplier < 1 ) | 966 if ( (char)uSoundVolumeMultiplier < 1 ) |
970 uSoundVolumeMultiplier = 0; | 967 uSoundVolumeMultiplier = 0; |
968 GUIWindow::Create(243, 162, 0, 0, (enum WindowType)90, (int)pBtn_SliderLeft, v0); | |
969 pAudioPlayer->SetMasterVolume(pSoundVolumeLevels[uSoundVolumeMultiplier] * 128.0f); | |
970 pAudioPlayer->PlaySound((SoundID)218, -1, 0, -1, 0, 0, 0, 0); | |
971 continue; | |
972 } | |
973 if ( uMessageParam == 5 )//Increase sound level | |
974 { | |
975 ++uSoundVolumeMultiplier; | |
976 if ( (char)uSoundVolumeMultiplier > 8 ) | |
977 uSoundVolumeMultiplier = 9; | |
971 v168 = v0; | 978 v168 = v0; |
972 v24 = 243; | 979 v24 = 435; |
973 v154 = (int)pBtn_SliderLeft; | 980 v154 = (int)pBtn_SliderRight; |
974 //LABEL_150: | 981 //goto LABEL_150; |
975 GUIWindow::Create(v24, 0xA2u, 0, 0, (enum WindowType)90, v154, v168); | 982 GUIWindow::Create(v24, 0xA2u, 0, 0, (enum WindowType)90, v154, v168); |
976 //goto LABEL_157; | 983 //goto LABEL_157; |
977 pAudioPlayer->SetMasterVolume((signed __int64)(pSoundVolumeLevels[(char)uSoundVolumeMultiplier] * 128.0)); | 984 pAudioPlayer->SetMasterVolume(pSoundVolumeLevels[uSoundVolumeMultiplier] * 128.0f); |
978 v165 = 0; | 985 v165 = 0; |
979 v151 = 0; | 986 v151 = 0; |
980 v144 = 0; | 987 v144 = 0; |
981 v139 = 0; | 988 v139 = 0; |
982 v135 = -1; | 989 v135 = -1; |
983 v132 = 0; | 990 v132 = 0; |
984 v130 = -1; | 991 v130 = -1; |
985 v127 = 218; | 992 v127 = 218; |
986 goto _play_sound_and_continue; | 993 goto _play_sound_and_continue; |
987 } | 994 } |
988 if ( uMessageParam == 5 ) | |
989 { | |
990 ++uSoundVolumeMultiplier; | |
991 if ( (char)uSoundVolumeMultiplier > 8 ) | |
992 uSoundVolumeMultiplier = 9; | |
993 v168 = v0; | |
994 v24 = 435; | |
995 v154 = (int)pBtn_SliderRight; | |
996 //goto LABEL_150; | |
997 GUIWindow::Create(v24, 0xA2u, 0, 0, (enum WindowType)90, v154, v168); | |
998 //goto LABEL_157; | |
999 pAudioPlayer->SetMasterVolume((signed __int64)(pSoundVolumeLevels[(char)uSoundVolumeMultiplier] * 128.0)); | |
1000 v165 = 0; | |
1001 v151 = 0; | |
1002 v144 = 0; | |
1003 v139 = 0; | |
1004 v135 = -1; | |
1005 v132 = 0; | |
1006 v130 = -1; | |
1007 v127 = 218; | |
1008 goto _play_sound_and_continue; | |
1009 } | |
1010 uSoundVolumeMultiplier = (pMouse->GetCursorPos(&v207)->x - 263) / 17; | 995 uSoundVolumeMultiplier = (pMouse->GetCursorPos(&v207)->x - 263) / 17; |
1011 if ( (char)uSoundVolumeMultiplier > 8 ) | 996 if ( (char)uSoundVolumeMultiplier > 8 ) |
1012 uSoundVolumeMultiplier = 9; | 997 uSoundVolumeMultiplier = 9; |
1013 //LABEL_157: | 998 //LABEL_157: |
1014 pAudioPlayer->SetMasterVolume((signed __int64)(pSoundVolumeLevels[(char)uSoundVolumeMultiplier] * 128.0)); | 999 pAudioPlayer->SetMasterVolume(pSoundVolumeLevels[uSoundVolumeMultiplier] * 128.0f); |
1015 v165 = 0; | 1000 v165 = 0; |
1016 v151 = 0; | 1001 v151 = 0; |
1017 v144 = 0; | 1002 v144 = 0; |
1018 v139 = 0; | 1003 v139 = 0; |
1019 v135 = -1; | 1004 v135 = -1; |
1046 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); | 1031 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); |
1047 //goto LABEL_173; | 1032 //goto LABEL_173; |
1048 if ( !uVoicesVolumeMultiplier ) | 1033 if ( !uVoicesVolumeMultiplier ) |
1049 continue; | 1034 continue; |
1050 v165 = 0; | 1035 v165 = 0; |
1051 v151 = (signed __int64)(pSoundVolumeLevels[(char)uVoicesVolumeMultiplier] * 128.0); | 1036 v151 = pSoundVolumeLevels[uVoicesVolumeMultiplier] * 128.0f; |
1052 v144 = 0; | 1037 v144 = 0; |
1053 v139 = 0; | 1038 v139 = 0; |
1054 v135 = -1; | 1039 v135 = -1; |
1055 v132 = 0; | 1040 v132 = 0; |
1056 v130 = -1; | 1041 v130 = -1; |
1069 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); | 1054 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); |
1070 //goto LABEL_173; | 1055 //goto LABEL_173; |
1071 if ( !uVoicesVolumeMultiplier ) | 1056 if ( !uVoicesVolumeMultiplier ) |
1072 continue; | 1057 continue; |
1073 v165 = 0; | 1058 v165 = 0; |
1074 v151 = (signed __int64)(pSoundVolumeLevels[(char)uVoicesVolumeMultiplier] * 128.0); | 1059 v151 = pSoundVolumeLevels[uVoicesVolumeMultiplier] * 128.0f; |
1075 v144 = 0; | 1060 v144 = 0; |
1076 v139 = 0; | 1061 v139 = 0; |
1077 v135 = -1; | 1062 v135 = -1; |
1078 v132 = 0; | 1063 v132 = 0; |
1079 v130 = -1; | 1064 v130 = -1; |
1085 uVoicesVolumeMultiplier = 9; | 1070 uVoicesVolumeMultiplier = 9; |
1086 //LABEL_173: | 1071 //LABEL_173: |
1087 if ( !uVoicesVolumeMultiplier ) | 1072 if ( !uVoicesVolumeMultiplier ) |
1088 continue; | 1073 continue; |
1089 v165 = 0; | 1074 v165 = 0; |
1090 v151 = (signed __int64)(pSoundVolumeLevels[(char)uVoicesVolumeMultiplier] * 128.0); | 1075 v151 = pSoundVolumeLevels[uVoicesVolumeMultiplier] * 128.0f; |
1091 v144 = 0; | 1076 v144 = 0; |
1092 v139 = 0; | 1077 v139 = 0; |
1093 v135 = -1; | 1078 v135 = -1; |
1094 v132 = 0; | 1079 v132 = 0; |
1095 v130 = -1; | 1080 v130 = -1; |