SpApplicationFactory->RunWithActivationFactories(spGetActivationFactory.Get()) ĥ) Right click and bring up Project properties. Throw std::runtime_error(std::string("Failed to GetActivationFactory(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication), HRESULT: ").append(std::to_string(hr))) Hr = GetActivationFactory(HStringReference(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication).Get(), &spApplicationFactory) Throw std::runtime_error(std::string("Failed to Initialize(RO_INIT_MULTITHREADED), HRESULT: ").append(std::to_string(hr))) HRESULT hr = Initialize(RO_INIT_MULTITHREADED)
Return MyGetActivationFactory(activatableClassId, factory) IFACEMETHODIMP GetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory) HRESULT _cdecl MyGetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory) Ĭlass GetCustomClass : public RuntimeClass, Using namespace ABI::Windows::Foundation Using namespace ABI::Windows::ApplicationModel::Core The next step is to basically delete the BackEndServerHost project and create a new one with the following steps.ġ) Add a new C++ Dirext X App (Windows Phone) to the solution and name it VoipBackendServerHost NOTE: using "." in the name causes problems, so don't use the same name as the original sample.Ĥ) Contents of app.cpp should be: #include "pch.h" In the BackEndAudio::Stop routine change the order of cleanup: if (m_pDefaultRenderDevice) The m_pwfx was already retrieved via GetMixFormat earlier, just use that. Hr = m_pDefaultCaptureDevice->Initialize(AUDCLNT_SHAREMODE_SHARED, 0x88140000, 1000 * 10000, 0, &format, NULL) M_sourceFrameSizeInBytes = (format.wBitsPerSample / 8) * format.nChannels In the backendaudio.cpp BackEndCapture::InitCapture I changed the code: if (SUCCEEDED(hr))įillPcmFormat(format, m_pwfx->nChannels, m_pwfx->nSamplesPerSec, m_pwfx->wBitsPerSample) While we work on re-creating that from scratch, testing, and re-publishing I wanted to post what we have done so far in case anyoneįirst there are a couple bugs in the sample, maybe you worked around those already in your development but in case not here they are.
We found the problem to be in the way the BackEndServerHost VIsual studio
#Voip applications for windows 10 update
I am currently working with the sample team to update the sample.