Jump to content
The simFlight Network Forums

sound.playloop don´t loop if FS is no focus


Recommended Posts

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)
end
else
sound.stop(ref1)
ipc.sleep(500)
end
end
event.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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.