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
1
vote
0 answers

Wasapi : how to create a router mixer

I'm trying to create a mixing table with Wasapi. I create and retrieve samples from Input Card then send it to Output Speaker. But how to create matrix with subvoice that will not being playing through Speaker ? I can't found any documentation on…
Maypeur
  • 387
  • 4
  • 18
1
vote
1 answer

No Sound When Playing Back PCM-Decoded Audio

I am reading AAC audio frames which I then decode to PCM with Media Foundation and am trying to play back through WASAPI. Particularly 48000khz 2 channels, 16 bit. I am able to decode the frames, write them to a file full.pcm, and then open and play…
Meme Machine
  • 949
  • 3
  • 14
  • 28
1
vote
1 answer

Why is the last byte of a WasapiLoopbackCapture sample always 3B,3C,3D,3E,BC,BC or BE

I am writing a program to display audio samples on a time/amplitude graph. I want to use the real-time audio playing on the computer and am using WasapiLoopbackCapture from the CSCore library, but the data shows on my graph always seems…
Rufus
  • 13
  • 2
1
vote
0 answers

WASAPI: Getting the actual wave format a device is initialized with

I need to programmatically get a wave format (WAVEFORMATEX structure) of the initialized WASAPI rendering audio device. IAudioClient::GetMixFormat doesn't fit in this case, because IAudioClient::Initialize can be called with another format (not…
Anton Serov
  • 174
  • 2
  • 12
1
vote
0 answers

Creating a virtual speaker with python

I've started working on a graphic equalizer app in python, my goal is to be able to eq the sound played by applications such as youtube. The simplest solution seems to be to record audio using WASAPI loopback on a silent output, modify it, then play…
1
vote
0 answers

Is there a way to obtain WASAPI loopback recordings using MediaStream Recording API?

The first question on StackOverflow after many years of copypasting! Do you know how to access the Windows WASAPI driver in order to obtain audio loopback capabilities on React? Tried out using methods such as listing devices (e.g.…
misu
  • 11
  • 2
1
vote
1 answer

Feed a capture device (e.g. microphone) with audio in C#

Is there any way to play audio directly into a capture device in C#? In my project I will have to feed later on a virtual capture driver with audio so I can use it in other programs and play the wanted audio anywhere else, but Im not sure it is…
Saliom
  • 109
  • 2
  • 10
1
vote
0 answers

How to hook output audio without WASAPI using python?

I am using pyaudio now. But my computer doesn't have WASAPI. So I can't use loopback. #Select Device for i in range(0, self.virtual_p.get_device_count()): info = self.virtual_p.get_device_info_by_index(i) if…
azvast
  • 337
  • 4
  • 10
1
vote
1 answer

AvSetMmThreadCharacteristicsW for UWP

I'm working on a WASAPI UWP audio application with cpp/winrt which needs to take audio from an input and send it to an output after being processed. I want to set my audio thread characteristics with AvSetMmThreadCharacteristicsW(L"Pro Audio",…
loics2
  • 616
  • 1
  • 10
  • 24
1
vote
0 answers

IAudioClient initialization issues in exclusive mode

I'm trying to access a specific USB audio device with WASAPI in exclusive mode in a UWP app. First, I'm creating a WAVEFORMATEXTENSIBLE and check if my device supports this format : WAVEFORMATEXTENSIBLE wf; wf.Format.cbSize =…
loics2
  • 616
  • 1
  • 10
  • 24
1
vote
3 answers

How do you use WASAPI in exclusive mode?

I'm writing a piano simulator where I continuously send buffers to the WASAPI API. I'm trying to do it in AUDCLNT_SHAREMODE_EXCLUSIVE mode but I still don't understand how to handle it. With the code below, I instantiate a separate thread for each…
David
  • 39
  • 2
  • 6
1
vote
0 answers

What happens to IAudioClock::GetPosition() if the end point buffer is not filled in time?

If an application using WASAPI fails to fill an endpoint buffer for an IAudioRenderClient as the playback position reaches that point, what does that do to the result of IAudioClock::GetPosition()? Does it stop at that point or continue to count…
iam
  • 1,623
  • 1
  • 14
  • 28
1
vote
0 answers

How do I know what the KSDATAFORMAT_SUBTYPEs want?

I want to write audio data that follows the correct subformat of a WAVEFORMATEXTENSIBLE object. Microsoft provides a list near the bottom of this…
John Glen
  • 771
  • 7
  • 24
1
vote
1 answer

Filling audio endpoint buffer provided by WASAPI not playing sound

I am trying to play noise through the default audio endpoint renderer using the WASPAI interface. I am trying to use the code provided by Microsoft on this page: https://learn.microsoft.com/en-us/windows/win32/coreaudio/rendering-a-stream. I want to…
John Glen
  • 771
  • 7
  • 24
1
vote
1 answer

Windows Audio Driver vs. WASAPI

I'm right now reading the microsoft documentation about drivers and core audio apis. At the moment I'm still confuse which way to go to achieve what I need. I have an audio application which is Standalone and coded with framework JUCE in C++. And I…