locked
Capture Sound Output Windows Store Apps RRS feed

  • Question

  • Hi All,

    I need to capture what is playing through speakers/computer audio out from a Windows Store Apps (loop back recording). Any ideas will be great.

    Thanks.


    Happy Coding.

    Regards,
    Jaliya Udagedara (MCPD,MCSD) | My Blog


    Wednesday, June 12, 2013 7:56 AM

Answers

All replies

  • check this and About WASAPI

    Happy Coding!! If my post answers your question please 'Mark as Answer' and 'Vote as Helpful' if it helps you.

    • Proposed as answer by Coder R Wednesday, June 12, 2013 10:47 AM
    • Unproposed as answer by Jaliya UdagedaraMVP Wednesday, June 12, 2013 1:04 PM
    Wednesday, June 12, 2013 10:47 AM
  • Hi,

    WASAPI seems to be the one and only option. Do anyone has developed a .NET wrapper for WASAPI


    Happy Coding.

    Regards,
    Jaliya Udagedara (MCPD,MCSD) | My Blog


    Wednesday, June 12, 2013 11:19 AM
  • Hi Jaliya,

    Try http://naudio.codeplex.com/. It's C# wrapper for Wasapi, ASIO, DirectSound libraries. 


    Happy Coding!! If my post answers your question please 'Mark as Answer' and 'Vote as Helpful' if it helps you.

    Wednesday, June 12, 2013 6:12 PM
  • Hello,

    Please keep in mind that WASAPI is not supported from C#. There are some major problems with continuous media streams in managed languages due to the GC. Please make sure you read my blog and understand the ramifications of using a managed wrapper for your audio before committing.

    http://blogs.msdn.com/b/mediasdkstuff/archive/2009/04/01/calling-the-format-sdk-directshow-media-foundation-or-the-wasapi-from-managed-code-c-vb-net.aspx

    I hope this helps,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Wednesday, June 12, 2013 11:23 PM
    Moderator
  • I checked naudio and unfortunately it is not supported for Windows Store Apps. I think the naudio developer is upgrading his solution for Windows Store Apps.

    Happy Coding.

    Regards,
    Jaliya Udagedara (MCPD,MCSD) | My Blog

    Thursday, June 13, 2013 4:37 AM
  • Hi James,

    Went through your great article. It is so bad that managed code has less support for low level APIs and though I love C# more, nothing can beat C/C++.


    Happy Coding.

    Regards,
    Jaliya Udagedara (MCPD,MCSD) | My Blog

    Thursday, June 13, 2013 4:40 AM