Sound in Simulator

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?

Example code please ?

This is all im trying to do from a sound perspective


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

and this is 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


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