Search found 31 matches

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: 1109

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: 1109

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: 1109

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: 1561

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: 1561

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: 6594

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: 6594

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: 6594

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: 6594

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: 6594

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: 6594

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: 6594

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.
by flyboy7798
Wed Dec 12, 2018 3:24 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 6594

[RESOLVED] PDK Sound Service Instance -> Play() Function

I'm getting valid HRESULT saying that the SoundServiceInstance Play() function executed normally but no sound. I checked and set the volume and cockpit attenuation and nothing. I even called IsPlaying() and it said the sound was playing?

Any ideas as to what to try next?
by flyboy7798
Tue Dec 11, 2018 7:53 pm
Forum: Simulation Object Development Questions
Topic: [RESOLVED] Using PDK Sound Service
Replies: 11
Views: 2221

Re: Using PDK Sound Service

That got it...thanks again.

Go to advanced search