@@ -594,11 +594,15 @@ def PlayMusic(musNum):
594594 music2 = rl .load_music_stream (str (THIS_DIR / musicfilepath ))
595595 #pygame.mixer.music.set_volume(pygamemixermusic)
596596 #pygame.mixer.music.play()
597+ rl .set_music_volume (music1 , pygamemixermusic )
598+ rl .set_music_volume (music2 , pygamemixermusic )
597599 rl .stop_music_stream (music1 )
598600 rl .stop_music_stream (music2 )
599601 rl .play_music_stream (music1 )
600602PlayMusic (random .randint (1 ,6 ))
601- pygame .mixer .music .set_volume (pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
603+ #pygame.mixer.music.set_volume(pygamemixermusic * float(Settings[1]["value"] / 100))
604+ rl .set_music_volume (music1 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
605+ rl .set_music_volume (music2 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
602606click_sound = pygame .mixer .Sound (resource_path (str (THIS_DIR / "./assets/audio/Click mouse - Fugitive Simulator - The-Nick-of-Time.wav" )))
603607hover_sound = pygame .mixer .Sound (resource_path (str (THIS_DIR / "./assets/audio/251389__deadsillyrabbit__button_hover-wav.wav" )))
604608upgrade_sound = pygame .mixer .Sound (resource_path (str (THIS_DIR / "./assets/audio/Upgrade SOund 0001.wav" )))
@@ -932,7 +936,9 @@ def prestige():
932936 resetupgrades ()
933937 PlayMusic (random .randint (1 ,6 ))
934938 musicplays = 0
935- pygame .mixer .music .set_volume (pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
939+ #pygame.mixer.music.set_volume(pygamemixermusic * float(Settings[1]["value"] / 100))
940+ rl .set_music_volume (music1 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
941+ rl .set_music_volume (music2 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
936942 gems += gemstoget
937943
938944 # Draw upgrade buttons
@@ -999,7 +1005,9 @@ def distance_to(ax, ay, bx, by):
9991005 screen .blit (realarrowupimg1 , (1100 * WindowXscale + CamPos [0 ]* WindowXscale , (34 * WindowYscale ) + mos_y / 40 + CamPos [1 ]* WindowYscale ))
10001006
10011007 if not isinstance (Settings [1 ]["value" ], str ):
1002- pygame .mixer .music .set_volume (pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
1008+ #pygame.mixer.music.set_volume(pygamemixermusic * float(Settings[1]["value"] / 100))
1009+ rl .set_music_volume (music1 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
1010+ rl .set_music_volume (music2 , pygamemixermusic * float (Settings [1 ]["value" ] / 100 ))
10031011 if not isinstance (Settings [0 ]["value" ], str ):
10041012 upgrade_sound .set_volume (Decimal (Settings [0 ]["value" ]/ 100 ))
10051013 hover_sound .set_volume (Decimal (Settings [0 ]["value" ]/ 100 ))
0 commit comments