Welcome, Guest
Username: Password: Remember me

NOTE: This is a "Community" forum. Please be mindful that community members are here to help as part of a community effort. We therefore appreciate your effort in keeping this forum a happy place!

If you have a specific issue (e.g. hardware, failure) and want help from our support team, please use our tech support portal (Support menu - > Contact Us).
Thanks a lot of your help in making a better community.

TOPIC: How to get audio sample by using C++ on Windows?

How to get audio sample by using C++ on Windows? 1 year 4 months ago #37705

  • Junchao
  • Junchao's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi Mr/Mrs,

There is an example that get audio sample by using Matlab, i.e. use function 'audioDeviceReader'. But how to do this if I am using C++? any demo? thanks.

Is it possible that use APIs in library 'winmm.lib' to do that ? APIs listed as below:
(1) waveInOpen
(2) waveInStart
(3) waveInAddBuffer
...

Best Regards,
Junchao Cai
The administrator has disabled public write access.

How to get audio sample by using C++ on Windows? 1 year 4 months ago #37804

  • devteam
  • devteam's Avatar
  • Online
  • Administrator
  • Posts: 8607
  • Thank you received: 1076
  • Karma: 158
@Junchao

I'm afraid that we don't have such example/app notes. It would be outside our tech support to go into that details of coding but knowing the interface is a standard UAC2 interface (USB Audio Class2), I'm sure that google would pop a lot of options to be able to record/stream audio from your app.

DevTeam
miniDSP, building a DSP community one board at a time.
The administrator has disabled public write access.
Moderators: devteam