locked
Resample audio stream buffer in windows store app RRS feed

  • Question

  • Hi ,

    Currently i am working to capture audio stream as Wave with Sample rate 8000, channels 1 and bitspersample 16. But when i tried with WASAPI, i can only able to create a Wave Stream with a CD Quality parameters. So i have tried to resample my audio stream with Resampler DMO. We didn't even succeed with Resampler DMO.After so many searches, i learned from many forums that Resampler DMO is not supported in Windows Store App. Can anybody help me to find a solution . We have tried with many Open Source Wrapper environment such as NAudio,Sharpdx.  Since we are working with C# environment, can anybody provided a sample workaround in C#. We are also looking to implement  Audio Effects such as AEC, Noise Suppression, AGC.

    Thanks in Advance!

    Tinoy


    Jameson M Tinoy

    Monday, December 9, 2013 4:17 PM

Answers

  • Hello Tinoy,

    Unfortunately we do not have an audio resampling solution that you can use in your Windows Store app when working directly with WASAPI. If you choose to use Media Foundation (via the Media Engine and / or MediaElement) the resampler should automatically be loaded into the topology and you should be able to specify the chosen sample rate and bit depth. Unfortunately with the Media Engine solution you will need to write MFTs, sources and sinks in C++ we don't support writing plug-ins from managed languages. You can get started with the sample below.

    Real-time communication sample

    http://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290

    I hope this helps,

    James


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

    Monday, December 9, 2013 9:49 PM
    Moderator

All replies

  • Hello Tinoy,

    Unfortunately we do not have an audio resampling solution that you can use in your Windows Store app when working directly with WASAPI. If you choose to use Media Foundation (via the Media Engine and / or MediaElement) the resampler should automatically be loaded into the topology and you should be able to specify the chosen sample rate and bit depth. Unfortunately with the Media Engine solution you will need to write MFTs, sources and sinks in C++ we don't support writing plug-ins from managed languages. You can get started with the sample below.

    Real-time communication sample

    http://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290

    I hope this helps,

    James


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

    Monday, December 9, 2013 9:49 PM
    Moderator
  • Thanks James for the valuable answer. I will look into the mentioned sample.

    Jameson M Tinoy

    Tuesday, December 10, 2013 2:31 AM