TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
517 stars 114 forks source link

Ogg file support? #156

Open happyleibniz opened 3 months ago

happyleibniz commented 3 months ago

Does this project supports ogg? because i get an error when playing an ogg file.

playingsample-1.ogg as ogg

    Error 263 for command:
        open sample-1.ogg
    The specified device is not open or is not recognized by MCI.

    Error 263 for command:
        close sample-1.ogg
    The specified device is not open or is not recognized by MCI.
Failed to close the file: sample-1.ogg
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    ogg.play()
  File "C:/Users/Spinoza/Downloads/Video/audio.py", line 32, in play
    playsound(self.filename)
  File "C:\Users\Spinoza\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 72, in _playsoundWin
    winCommand(u'open {}'.format(sound))
  File "C:\Users\Spinoza\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 64, in winCommand
    raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException: 
    Error 263 for command:
        open sample-1.ogg
    The specified device is not open or is not recognized by MCI.