Page 2 of 2

Re: Questions about making an audio OXP

Posted: Wed Jul 03, 2013 10:06 pm
by Corny
I see, thanks :)

Re: Questions about making an audio OXP

Posted: Thu Jul 04, 2013 8:33 am
by Corny
So, if I wanted to use different intervals or even more sounds - like start, loop and end - , do I get that right that I had to mute the core sound by providing a mute replacement, and then trigger my own using the script handlers shipScoopedFuel and shipScoopedOther?
Sorry if I ask every little step, but I'm not very good at JS, so I'd try to implement all that after I'm done with the sounds (or find someone who's more proficient and willing to do it). And I guess I won't be able to tell the difference between "I'm doing it wrong" and "It's not possible". :(
(Thanks wkmanire for the suggestion!)

Edit: Well, I guess that wouldn't work when the scoop sound is called in an interval - the fuel scoop sound is called for every 0.1LY afaik, so that would leave the clip with a fixed interval again.

Re: Questions about making an audio OXP

Posted: Thu Jul 04, 2013 7:25 pm
by Svengali
Corny wrote:
E.g. I noticed that there's the clip in the BGS that says "scoop active", but it would always start the next loop after "scoop" already, so you hear the "...active" only when the scoop is actually no longer active.
This behaviour has been changed after v1.76 (v1.76.1).

Re: Questions about making an audio OXP

Posted: Thu Jul 04, 2013 9:31 pm
by Corny
Oh, sorry. I'm flying an Adder since 1.77, so I didn't really scoop anything. What has changed in the code?

Re: Questions about making an audio OXP

Posted: Fri Jul 05, 2013 11:56 am
by Svengali
Corny wrote:
Oh, sorry. I'm flying an Adder since 1.77, so I didn't really scoop anything. What has changed in the code?
The clip is played in full length. The interval is still the same, but Oolite checks if the sound is currently playing. If its not playing it replays it.

Re: Questions about making an audio OXP

Posted: Fri Jul 05, 2013 12:13 pm
by Corny
Okay, then it's a bug on my side. I don't get any sound while scooping, for cargo at least.
Good to know that this bug isn't happening anymore, though :) Thanks for the update.

Re: Questions about making an audio OXP

Posted: Wed Jul 10, 2013 10:26 am
by Svengali
Corny wrote:
Good to know that this bug isn't happening anymore, though :)
Yes, it feels a bit more natural this way - although I don't think that it was a bug, just a different way .-)