Marcelo peixoto Posted June 16, 2012 Report Posted June 16, 2012 Hi Pete! My FSuipc is now 4.836 I loop a sound to fire engine. function engfire(offset, value)if value ~= 0 then if ipc.readSB(0x0B20) == 1 then ref1=sound.playloop("jetone_fire" ,0 ,-60) ipc.sleep(500) endelse sound.stop(ref1) ipc.sleep(500)endendevent.offset(0x3366, "UB", "engfire")[/CODE]If the volume are positive, like 60, the loop works fine, if the volume are negative -60 to play only when the FS have the focus, the sound play like sound.play, no like sound.playloop.Tanks
Pete Dowson Posted June 16, 2012 Report Posted June 16, 2012 If the volume are positive, like 60, the loop works fine, if the volume are negative -60 to play only when the FS have the focus, the soud play live soud.play, no like sound.playloop. Oops! Thanks for finding this. Silly little bug, a typo in the code. I'll fix it in 4.837, 3.999q and Wideclient 6.972, probably later today ... [LATER] Okay. Fixed, updates now available in Download Links subforum. Regards Pete
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now