DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Playing Sound

  • submit to reddit
        py_s60 1.1.3 provides audio module which allow you to
play sound. This should let people write some fun games.

Here's a quick example.
from audio import *
f = 'C:\\Nokia\\Sounds\\Digital\\28050.amr'
s =
I have tried calling directly, but
it doesn't seem to work. I may be waiting for file loading
or wait for some callback. I don't know.

You can play it many times or repeat forever # 3 times # or just use -2
s.stop() # Ok, enough of it