MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Author Topic: AudioDjStudioApi.AudioDjStudioApiObj PlaySoundFromRecorderEx  (Read 138 times)

Terry

  • Newbie
  • *
  • Posts: 21
    • View Profile

Hello,

I want to real-time play sound data coming from an input device.
 
Does "Audio Sound Recorder API for .NET" driver type only goes with DIRECT_SOUND, when PlaySoundFromRecorderEx?

If I set drivertype to WASAPI, Does it works?

Best regards,
Terry
Logged

Administrator

  • Administrator
  • Sr. Member
  • *****
  • Posts: 276
    • View Profile
    • MultiMedia Soft
Re: AudioDjStudioApi.AudioDjStudioApiObj PlaySoundFromRecorderEx
« Reply #1 on: May 22, 2020, 02:40:54 PM »

Hello,

the PlaySoundFromRecorderEx method was introduced specifically for DirectSound when WASAPI was still not available in Windows.

With WASAPI, listening and playing back the audio flow from a capture device is quite easier and doesn't require using both components (DJ Studio and the Recorder) anymore, indeed you can perform this task using the "Audio Dj Studio API for .NET" only by leveraging the WASAPI.AttachInputDeviceToPlayer method.

You can see how to use this method by looking into the code of the WasapiInputPlayer sample, available in both C# and VB.NET, installed by our setup package within samples of "Audio DJ Studio API for .NET".

Hope this helps.

Kind Regards

Severino Delaurenti
MultiMedia Soft
Logged