Pygame: Не работают звуки на Linux
Столкнулся с проблемой, что звук не воспроизводиться. Решил протестить отдельно и понял, что на Mac os всё нормально, но на Linux (Ubuntu) звука нет. Может кто сталкивался с такой проблемой?
import pygame
pygame.mixer.init()
pygame.init()
pygame.display.set_mode((600, 400))
jump_sound = pygame.mixer.Sound('jump.ogg')
while True:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_SPACE:
jump_sound.play()