0 Members and 1 Guest are viewing this topic.
DanSteph wrote:QuoteFace a écrit:I just wanted to inform you, that the OrbiterSound.dll you posted isn't working at all on my machines. I thought the fix forDoug's problem would fix the loading of vessel sounds from late-started MFDs as well. That would render the need for specialSorry I'm not sure I get it...Do you mean you don't have any sound playing or only that MFD sound don't work ?Doug: I'll see to add a version check...Dan
Face a écrit:I just wanted to inform you, that the OrbiterSound.dll you posted isn't working at all on my machines. I thought the fix forDoug's problem would fix the loading of vessel sounds from late-started MFDs as well. That would render the need for special
DanSteph wrote:I compiled it with the patch... hope this is the problem ?Else I have VS8... but if it work on Doug's computer I think it's not the problem ??what say the Orbiter.log ? I have this:Module OrbiterSound.dll [API v.060425]
DanSteph wrote:I just checked it doesn't work on my previous installation of Orbiter (2006 + beta patch of july)it even trow an error "entry point not found" or something like that...Seem you need the Orbiter patch ?
DanSteph wrote:if it still don't work... it might be VS8 problem related, in this case can you do something for me ? DOn'T install any Ms stuff because I'll need someone100% sure that it don't have the new file so I can test what to provide with OS so it work on any computer....
// Constructor - Creates the MFD mode and links it with the appropriate drive and MFD// instances if available. If the drive or MFD instance is not available, it will be// created.JumpDriveMFD::JumpDriveMFD (DWORD w, DWORD h, VESSEL *vessel, UINT mfd): MFD (w, h, vessel){ int soundSlot[4]={LOAD,WOOSHOUT,BANG,WOOSHIN}; char key[30]; DWORD i; this->vessel=vessel; width=(int)w/35; heigth=(int)h/28; sprintf(key, "%p", vessel); Drive=(JumpDrive *)g_JumpDrives->get(key); if (Drive==0) { sound=ConnectToOrbiterSoundDLL3(vessel->GetHandle()); RequestLoadVesselWave3(sound, LOAD, LOADWAV, DEFAULT); RequestLoadVesselWave3(sound, ENGAGE, ENGAGEWAV, DEFAULT); RequestLoadVesselWave3(sound, WOOSHOUT, WOOSHOUTWAV, DEFAULT); RequestLoadVesselWave3(sound, BANG, BANGWAV, DEFAULT); RequestLoadVesselWave3(sound, WOOSHIN, WOOSHINWAV, DEFAULT); RequestLoadVesselWave3(sound, CHARGE, CANCELWAV, DEFAULT); JumpDriveData data; data.vessel=vessel; data.sound=sound; data.soundSlot=soundSlot; data.env=&g_Environment; data.jump=new double[CELLS]; data.jump[0]=JUMPPOS; for(i=1;(int)i<CELLS;i++) data.jump=data.jump[i-1]*JUMPSCALE; data.speed=JUMPVEL; data.offset=FLASHOFFSET; data.loadtime=RELOADTIME; data.capacity=CAPACITY; data.cells=CELLS; Drive=new JumpDrive(data); g_JumpDrives->put(key, Drive); } else { sound=Drive->GetSoundHandle(); } sprintf(key, "%p:%d", vessel, mfd); Data=(JumpDriveMFDData *)g_JumpDriveMFDs->get(key); if (Data==0) { Data=new JumpDriveMFDData; g_JumpDriveMFDs->put(key, Data); DWORD j=oapiGetObjectCount(); OBJHANDLE obj=vessel->GetHandle(); for(i=0; i<j; i++) if (oapiGetObjectByIndex(i)==obj) break; Data->target=i; Data->distance=0; Data->mode=0; Data->j2cells=1; } }