I wrote a short program in IDLE and it works fine when I run it in IDLE. But when I try the same program from the terminal command prompt it doesn't work, sudo python audiotest.py, after I press enter it goes back to the command prompt. No error message. Here's the program named audiotest.py
asound = pygame.mixer.Sound("police_s.wav")
achannel = pygame.mixer.Channel(2)
I just want to add some audio to my other programs, thank you.