cant init WASAPI


    • i rewrite code of sample to my RuntimeComponent, but cant compile it in this place:
      m_spRenderer = Make<WASAPIRenderer>(); (in sample in Scenario2.xaml.cpp, line 471)
      i get error c2259, but code exactly same except UI parts.
      cant you give me any idea why it happens?
    • the error is (sorry if something wrong, translate from russian):
      c:\program files (x86)\windows kits\8.1\include\winrt\wrl\implements.h(2191): error C2259: at_sound_engine::WASAPIRendererSDK: cannot instantiate abstract class (SDKHandle.cpp)
      1>          from the members:
      1>          HRESULT IActivateAudioInterfaceCompletionHandler::ActivateCompleted(IActivateAudioInterfaceAsyncOperation *): abstract
      1>          c:\program files (x86)\windows kits\8.1\include\um\mmdeviceapi.h(961): см. объявление "IActivateAudioInterfaceCompletionHandler::ActivateCompleted"
      1>          d:\trash\atmp work\atmp pre vsu\at_sound_engine\sdkhandle.cpp(195): look for link for creating functions template at compiling "Microsoft::WRL::ComPtr<at_sound_engine::WASAPIRendererSDK> Microsoft::WRL::Details::Make<at_sound_engine::WASAPIRendererSDK>(void)"
    Saturday, April 26, 2014 1:31 PM


All replies

  • I have seen errors like that when I'm not including a required header, or including it in the wrong order.
    Monday, April 28, 2014 1:42 AM
  • order is same except i doesnt included xaml page headers - i dont use them. 

    Can it happen by reason i put this code into Windows Runtime Component (dll)?

    Wednesday, May 7, 2014 6:15 PM