1

PyGame would be the easy way to go. Except i'd rather not have to install additional modules for such a simple task. And installing PyGame on Python 3.4 is not exactly a straightforward process (i have no idea what a pip or wheel is)...

But apparently, going through the documentation, there doesn't seem to be any native support for ogg files (or is there?)... So this has no effect:

import os, winsound

sound1 = os.path.expanduser(r '~\Myfolder__\media\sound\Mysoundfile.ogg')

winsound.PlaySound(
  sound1,
  winsound.SND_FILENAME | winsound.SND_NOWAIT,
)

(how do you apply python's string formatting? CTRL+K didn't work)

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
lifemare
  • 11
  • 5
  • 1
    "But apparently, going through the documentation," ................Documentation of what? Pygame? Winsound? If your talking about Pygame, ogg sound format is actually the #1 recommended sound format. – Douglas - 15 year old Pythoner Dec 17 '15 at 16:11

0 Answers0