Play sound file

How can I play a sound file from the middle and end it after a certain number of seconds?

I need something that allows me to start from some place in the file and end it in some other place in the file (say song from time 01:32 until 01:57),
Like the controlplayback doing fast-forward but without having to click any key by caller.



My guess is that the reason for no answer is that it requires you to modify the source code to add additional options. However it is not something I’d expect many people to want to do.