Search found 33 matches

by flyboy7798
Sun Nov 17, 2019 5:07 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Services/Variables for getting VC Eyepoint
Replies: 1
Views: 180

Re: PDK Services/Variables for getting VC Eyepoint

Think I found it, it the Window and Camera Service:

GetLLARadians
GetPBHRadians
by flyboy7798
Sat Nov 16, 2019 4:52 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Services/Variables for getting VC Eyepoint
Replies: 1
Views: 180

PDK Services/Variables for getting VC Eyepoint

I'm aware of and have used the following LLA and PBH Pvars (through simconnect) that get the eyepoint active "camera", ACTIVE EYEPOINT LAT, Radians ACTIVE EYEPOINT LON, Radians ACTIVE EYEPOINT ALT, Meters ACTIVE EYEPOINT PITCH, Radians ACTIVE EYEPOINT BANK, Radians ACTIVE EYEPOINT HEADING, Radians I...
by flyboy7798
Fri May 10, 2019 2:01 am
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 1499

Re: PDK Sound Service Instance -> IsPlaying() Function

This code hasn't changed since it worked in v4.4. I simplified the code in the earlier post. Here's a section of code which gets called at 18hz: if (!override_gear_warning) playLandingGearWarningSound(); else if (override_gear_warning) stopLandingGearWarningSound(); The larger context of that snippe...
by flyboy7798
Wed May 08, 2019 7:05 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 1499

Re: PDK Sound Service Instance -> IsPlaying() Function

Clifton, thanks for the rapid response. To answer the first question, the debug log shows this sequence: pPdkSoundInstance->Play() IN playSound() RETURNED S_OK pPdkSoundInstance->IsPlaying() IN stopSound() RETURNED E_FAIL pPdkSoundInstance->IsPlaying() IN playSound() RETURNED E_FAIL pPdkSoundInstanc...
by flyboy7798
Tue May 07, 2019 4:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Sound Service Instance -> IsPlaying() Function
Replies: 4
Views: 1499

PDK Sound Service Instance -> IsPlaying() Function

The other forum topic related to this problem was marked resolved: https://prepar3d.com/forum/viewtopic.php?f=6311&t=131939 I have updated to 4.5 and now the warning sound (that was working) will play once and then the next time IsPlaying() is called it returns E_FAIL. The same code that was working...
by flyboy7798
Wed Feb 20, 2019 2:58 pm
Forum: Simulation Object Development Questions
Topic: Multiple Gauge Declarations in a Single DLL
Replies: 2
Views: 1844

Re: Multiple Gauge Declarations in a Single DLL

Doug, thanks for reminding me, I had forgot that it was there.
by flyboy7798
Tue Feb 19, 2019 11:54 pm
Forum: Simulation Object Development Questions
Topic: Multiple Gauge Declarations in a Single DLL
Replies: 2
Views: 1844

Multiple Gauge Declarations in a Single DLL

Is it possible to have multiple gauge declarations (one non-GDI+ and one GDI+) compiled into one DLL? I have experimented, talked to other developers, and so far it doesn't seem to work. So far, I can have one visible gauge, but not two or more in the same DLL. Any help would be greatly appreciated.
by flyboy7798
Mon Dec 17, 2018 8:12 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

Benny, thanks for your reply. Thanks, Clifton for the information. Both your responses make sense as to why I'm getting the results in the debugger. I do have a followup question, I declare the both CComPtrs for the sound service and the sound instance as private. I initialize both smart pointers, i...
by flyboy7798
Sun Dec 16, 2018 11:13 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

Benny, Sounds like a plan to me! And thank you for helping. I had some time to dig a little deeper on this today, I ran down the error when I check if IsPlaying() is true or not, the HRESULT comes back as 0x887800aa. That error code is, I'm pretty sure for the LM sound.dll which I assume is using Di...
by flyboy7798
Sun Dec 16, 2018 12:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

Thanks Benny, Then the only other question I have is why once the CComPtr which is a class variable (private) is initialized in the constructor becomes useless (the value it returns in the HRESULT looks like a hexidecimal value) when I call the Play() in a class function. I can call play in the cons...
by flyboy7798
Sat Dec 15, 2018 4:15 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

I noticed in the PDK documentation that QueryInterface is supposed to be called on the newly created SoundInstance object. Or at least that is what I inferred. The line below is the call to create the sound instance (All error and exception handling removed for simplicity): pPdkSoundService->CreateS...
by flyboy7798
Thu Dec 13, 2018 4:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

Apologies, this line had a typo,

pPdkGearWarningSoundInstance->SetVolume(500.0);

...it should be:

pPdkGearWarningSoundInstance->SetVolume(9500.0);

and I verified that the sound plays.

Thank you guys for your help in getting this far.
by flyboy7798
Thu Dec 13, 2018 2:30 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

No, I'm only declaring the pointers in the .h file as private: P3D::IPdk* pIPdk = nullptr; CComPtr<P3D::ISoundServiceV440> pPdkSoundService; CComPtr<P3D::ISoundInstanceV440> pPdkGearWarningSoundInstance; LPCWSTR pszSoundFileName = L"..\\SimObjects\\Airplanes\\Aircraft\\Panel\\AircraftSound\\sound.wa...
by flyboy7798
Wed Dec 12, 2018 5:03 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 7966

Re: PDK Sound Service Instance -> Play() Function

I don't think so, my setup is different, everything is set up for my headset. P3D is set to use the Default device.

Go to advanced search