Thanks for reply.
Can't find any uninitialised variables.
Not sure how PlayChirp could access other m_pXRSound variables...
Isn't m_pXRSound created static ?
(excuse me if I'm talking rubbish. Knowledge pretty limited)
Hiya,
Urwumpe, thanks for the nice idea -
Suddenly everything linked
So, I've been creating functions/calls for 2 days now, but there are brick walls I can't scale.....
eg:
Code:
int EngExtPPit05()
{
m_pXRSound->PlayWav(ENGEXTP, true, 0.5);
return 1;
}
to replace
Code:
m_pXRSound->PlayWav(ENGEXTP, true, Ppit - 0.5);
XRSound is a compromise already on ORBITERSOUND 5.0 which was
Code:
PlayVesselWave(MySoundID,ENGEXTP,LOOP,190,prop_pitch - 800);
That gave an increase in pitch based on throttle levels.
I know we can simulate this by
Code:
m_pXRSound->SetPlaybackSpeed(ENGEXTP, Ppit);
but it doesn't give the same effect.
Anyway, the problem is I can't transpose this into a function cos it doesn't recognise Ppit from the source code.
If I try to reproduce the formula for Ppit in the specific" Open Orb" file it doesn't recognise the
GetThrusterLevel function, let alone thg_main[0].
Code:
double Ppit = ((GetThrusterLevel(thg_main[0]) * 2));
even though I #include "VesselAPI.h" in that file,
So I'm going down a line that's going to end up reproducing the whole source file again.
Am I missing something here cos of my limited coding skills?
Not only is it blowing my tiny mind to transpose all this info, it's really defeating the whole point of the exercise which was to save work transfering every change made in OO version to 2016 version or vica-versa.
Does anyone know of a "linking process" that would alleviate all of this?
I really do miss OrbiterSound 5.0, the doppler effect (so realistic), "surround sound" through attenation (cone effect), and superb flexibility to code to immersive sound.
DanSteph, if you're alive and well, it would be wonderful if you could update 5.0 to work with OpenOrbiter.
Or better still, release the code so it could be adapted as OO progresses.
Thanks to all, and hope there is a work around for this in the interim.