Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make a app that have a function like Sound Recorder of windows - it reads/store data from usb audio device. I thought to use WinUSB but it seem not support audio class. Can someone tell me which way to do this app ( document, method, sample,...)
Posted
Comments
SoMad 11-May-14 22:03pm    
Are you talking about a microphone or headset that you plug into a USB port? If that is the case, they have to be treated like any other audio device using the Waveform interface.
See http://msdn.microsoft.com/en-us/library/windows/desktop/dd743832(v=vs.85).aspx[^]

That link is for the C++ interface, but it was just to get the ball rolling.

Soren Madsen

There are many resources on CodeProject for C# code to record sound. Here's a recent (April, 2014) article: "Play or Capture Audio Sound. Send and Receive as Multicast (RTP)" [^].

The BASS library (free for non-commercial use) is very powerful library for all types of sound manipulation, and playback [^]. There is a .NET API available with examples in C#: [^].
 
Share this answer
 
Comments
qbao2291 12-May-14 4:04am    
Is there a project with windows API? I must use windows API in some reasons.
The term "USB audio class" is the item which mislead you. It is not at all important from which type of external/internal connection the sound comes from. Also an external sound card connected via USB is simply: a sound card. So just look for any tutorial on audion recording in your preferred programming language - omit that "USB" because it is irrelevant.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900