locked
Play audio by use BackgroundCapableMedia cant blocked app suspended? RRS feed

  • Question

  • I use this code to play audio in background to block the app suspend in 8.0

    mediaElement->AudioCategory = AudioCategory::BackgroundCapableMedia;


    but it does not work in 8.1 while capturing audio

    IAudioClient2*	 m_AudioClient;
    ..
    hr = m_AudioClient->Initialize(ShareMode, StreamFlags, hnsBufferDuration, hnsPeriodicity, pFormat, AudioSessionGuid);
    

    • Moved by Anne Jing Wednesday, November 27, 2013 1:42 AM Topic about C++
    Tuesday, November 26, 2013 11:06 AM

Answers