Sylvek Posted March 7, 2019 Posted March 7, 2019 Hi. I have a problem with setSoundProperties function. When I change pitch of some sound, it changes but with a little but really annoying lag. What I mean? I mean when sound has default pitch(0) it sounds normal but when I try to change pitch to f.e. 10,. pitch does change but sound has to wait before I hear it has changed pitch. I don't know if it's MTA side bug or I am doing something wrong. Just want to change pitch dynamically and immediately and I am wondering where's the fault?
Moderators IIYAMA Posted March 8, 2019 Moderators Posted March 8, 2019 (edited) That you do not have a super computer that can read > convert > play(at location) a sound within 1ms. Can't you do it in an x amount of time in the future? Atleast convert it to a wav format, else it has to re-uncompress the file. Edited March 8, 2019 by IIYAMA Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now