Preformated text tags improve readability of code on the forums.
cont = bge.logic.getCurrentController()
own = cont.owner
moviename = str(own[‘MovieName’])
mpitch = int(own[‘MoviePitch’])
original_sound = aud.Factory.file(bge.logic.expandPath("//…\Movie\")+moviename)
quite_sound = original_sound.volume(mpitch)
handle = aud.device().play(quite_sound)
I’ll just mention that the reason it looks odd at the end is because your path on line 7 is not very compliant - expandPath:
// = blend file directory;
../ = up one;
/ = directory separator.
To pause, resume or stop playback you can use the aud.Handle methods of the same names: handle.pause(), handle.resume(), and handle.stop() The problem is you don’t have continuous access to the handle. The file is still there but you lose your handle as soon as the function play_m() falls off the end. The most simple way to keep that handle is by making it a property of the owner object:
owner['handle'] = aud.device().play(quite_sound)
Now you can access that from other functions you create such as “pause_m()” or “resume_m()” or etc with:
owner['handle'].pause() #.resume() or .stop()
Hope this helps get you started.