我編譯的項目使用SDL_mixer來播放.ogg文件。但是,Mix_Init(MIX_INIT_OGG)失敗,Mix_GetError()返回"Mixer not built with Ogg Vorbis support"。我使用的SDL_mixer版本是1.2.12,通過Homebrew下載。 所以,我下載了SDL_mixer源(相同的版本,1.2.12),並試圖與奧格支持構建它,即./con
我的代碼: import pygame
import time
pygame.mixer.init() #to initiate the mixer
pygame.mixer.music.load('/home/xolo/bahara.mp3') #load path of song
time.sleep(1)
pygame.mixer.music.stop() #stop lo