Reputation: 1281
I was wondering if there was a winsound equivalent for playing .wav files on Mac? Preferably a native import. Thanks
Upvotes: 5
Views: 13379
Reputation: 5480
A native import will cause trouble here, as other modules have said functionality.
I assume you know how to install modules, so I won't go over that.
Here is an option:
Pygame (sudo pip install pygame
)
import pygame
pygame.init()
pygame.mixer.init()
sounda= pygame.mixer.Sound("desert_rustle.wav")
sounda.play()
Upvotes: 4