Sound in Simulator

Hi,
I am having some problems getting sound to work in the simulator.
My main problem is that the sound doesent seem to stop. Is this not what the duration parameter is for?
-Thanks

Example code please ?

This is all im trying to do from a sound perspective

pok.sound.ampEnable(1);

                if (pok.buttons.aBtn()) {
                    pok.sound.playTone(1, 33, 255, 1);
                }

and this is my_settings.h

#ifndef MY_SETTINGS_H
#define MY_SETTINGS_H

#define PROJ_HIRES 0
#define PROJ_ENABLE_SYNTH 1 //1 = high resolution (220x176) , 0 = low resolution fast mode (110x88)
#define PROJ_ENABLE_SOUND 1 // 0 = all sound functions disabled

#endif

Ok. I’ll take a look and get back to you