Questions tagged [wasapi]

The Windows Audio Session API (WASAPI) enables client applications to manage the flow of audio data between the application and an audio endpoint device.

The Windows Audio Session API (WASAPI) enables client applications to manage the flow of audio data between the application and an audio endpoint device.

For more details see msdn.microsoft.com.

234 questions
2
votes
1 answer

IMMDevice::Activate() with IBaseFilter return REGDB_E_CLASSNOTREG Class not registered

I want to get interface IBaseFilter system mixer, but get an error REGDB_E_CLASSNOTREG Class not registered in: hr = pEndpoint->Activate(__uuidof(IBaseFilter), CLSCTX_ALL, /*&var*/ NULL, (void**)ppFilter); Earlier this code to work. Fully…
Ivan Sh.
  • 149
  • 1
  • 6
2
votes
1 answer

How to convert from any format to PCM in Windows

I am using WASAPI to get audio data in c++ and Yeh!. I learned that conversion of audio data is not support in WASAPI, since it gives to and take from the core audio end points. I am working on a project to find exact audio frequency which needs…
Mohan Kumar
  • 621
  • 1
  • 8
  • 25
2
votes
1 answer

App hangs on RPC

I've an app using webrtc/coreaudio for media and it very rarely hangs on one PC. WinDBG's !analyze -v -hang gives the following: DEFAULT_BUCKET_ID: APPLICATION_HANG_BlockedOn_RPC PRIMARY_PROBLEM_CLASS: APPLICATION_HANG_BlockedOn_RPC BUCKET_ID: …
user6071088
2
votes
0 answers

Identify Windows USB Sounddevice by physical USB port connection

When I connect several USB audio devices using the default drivers I usually end up with some kind of friendly device description like "nn- USB Audio codec" or something else, so I have currently no unique property which refers to a specific…
Florian Storck
  • 509
  • 8
  • 22
2
votes
1 answer

Recording both rendering and recording device

I'm writing a program in C++, on Windows. I need to support Windows Vista+. I want to record both the microphone and speaker simultaneously. I'm using the WASAPI and can record the microphone and speaker separately, but I would like to have just one…
Erez Eshkol
  • 159
  • 4
2
votes
1 answer

How to get channel count from MMDevice?

I'm developing a Windows audio application, and am using an MMDeviceEnumerator to whip through all of the available audio interfaces. This trickles down to getting an MMDevice that gives me some information about the device itself. I'm wanting to…
Chuck D
  • 313
  • 2
  • 13
2
votes
1 answer

How to enable WASAPI exclusive mode in pyaudio

I'm using these precompiled binaries of pyaudio with WASAPI support. I want to play a wav file via WASAPI. I found index of default output device for this api: import pyaudio p = pyaudio.PyAudio() print p.get_host_api_info_by_index(3) >>{'index':…
Dmitry Misharov
  • 101
  • 2
  • 10
2
votes
0 answers

Wasapi Record and Playback, Same Audio Device, Audio Skewing

I'm developing an application for Windows (7+) that uses Wasapi for simultaneous record and playback (VOIP style). I've set up two streams to the SAME device (one capture, one render), using exclusive mode access. Buffer sizes are exactly the same…
Chuck D
  • 313
  • 2
  • 13
2
votes
0 answers

Is there a programmatic way of determining which process is playing sound on Windows XP?

My question is very similar to this one: Peak meters for individual programs on Windows 7 I'm also trying to write a program to enumerate all processes currently playing sound. But in my case I need it to work also on Windows XP, and the answer I…
MarioVilas
  • 912
  • 10
  • 16
2
votes
0 answers

Control application audio stream panning by Process ID in C#

I wish to control the panning (volume level of the left/right audio channel) of an application by process ID in C#. I have found similar questions, but they all control the stream volume and cannot 'pan' the two channels for stereo…
Woodsy
  • 21
  • 6
2
votes
2 answers

Windows Audio Endpoint API. Getting the names of my Audio Devices

My main goal at the moment is to get detailed information about all of the local machine's Audio Endpoint Devices. That is the objects representing the audio peripherals. I want to be able to choose which device to record from based on some logic…
lonious
  • 676
  • 9
  • 25
2
votes
1 answer

WASAPI captured buffer size on Windows

I use WASAPI to capture audio buffers in shared mode on Windows 7. I use my loudspeakers which can only have a 48 kHz sample rate, 96 kHz, 192 kHz or 44.1 kHz sample rate. My sound card is a Realtek High Definition one. I need to know if WASAPI will…
userAR15
  • 21
  • 7
2
votes
1 answer

WASAPI Exclusive/Event mode leads to buzzing noise

When I open an exclusive mode audio stream on one of my speakers, there is a strange buzzing noise. This buzzing noise does not happen under the same conditions on my other devices, nor does it happen in exclusive push mode or shared mode in…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
2
votes
1 answer

Are most (if not all) audio endpoints PCM?

I'm writing a Pro Audio application using WASAPI. All of the devices on my machine have a engine format of 16-bit or 24-bit PCM. Considering this, I'm wondering whether or not it's safe to make the assumption that all audio endpoints have PCM as…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
2
votes
1 answer

Record sound of a certain application

I was wondering is there any way to record sound of a certain application? I've searched for a while but didn't found some useful information about this. So now I'm using NAudio library to record WASAPI loopback and microphone sound, mix them…
Sign
  • 21
  • 1
  • 3