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
0
votes
1 answer

VolumeMixer Name Policy

After working with WASAPI i'm unable to understand what's the policy that uses sndvol32 (volume mixer) for show the name of the process. Obviously "0" processId is System Sounds Then, there are some hints i could obtain: - If you set a DisplayName…
DrkDeveloper
  • 939
  • 7
  • 17
0
votes
1 answer

How do I use get access to audio devices through the MMDevice API?

I am trying to manage the audio streams with a program, but I am having trouble even getting access to an audio device. As a side note I am new to C++ and I learned coding in Java so I'm new to the idea of pointers as well as the ideas of the…
Will
  • 3
  • 4
0
votes
2 answers

WASAPI rendering the saved audio file

I am trying to play back the audio which was captured using waspi capture. The audio is saved in the form of wasapicapture.in file. Now the challenge is to play back the audio captured using wasapi renderer. I am able to play back, but the audio…
ImHere
  • 15
  • 5
0
votes
0 answers

Is the eventhandler in WPF run on the same thread as the event?

Still trying to get a good grasp on multithreading in WPF. When an eventhandler is attached to an event, is it (the eventhandler) run on the same thread as the event? For example, in NAudio, it is my understanding that the WasapiCapture works…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
0 answers

Is loopback recoding supported in UWP

I have been looking around for an answer to this question but there seem to be mixed responses, but is loopback recording (using WASAPI, or something else) supported on all devices in UWP? I refer to this answer and this answer which seem to tell…
Tokfrans
  • 1,939
  • 2
  • 24
  • 56
0
votes
1 answer

IAudioClient::Initialize returns (E_InvalidArg,0x80070057,-2147024809)

I use NAudio lib for creating windows service, for capturing audio from sound card,throw Wasapi. But on one of computers i get hresult = -2147024809,when i call audioClientInterface.Initialize Here is code that i use to capture. public partial…
Faradey Inimicos
  • 687
  • 1
  • 5
  • 21
0
votes
1 answer

Turn down volume of WasapiLoopbackCapture C#

This is a small part of my code: private void Connect(IPEndPoint endPoint, INetworkChatCodec codec) { waveIn = new WasapiLoopbackCapture(); //waveIn.WaveFormat = codec.RecordFormat; waveIn.DataAvailable +=…
0
votes
0 answers

Loopback is saved in buffer, how to write to disk as wav?

In the code below, you can copy paste it to an empty proejct, add main.cpp and it is saving it to buffer, however I don't know how to write that buffer to file. You can see in SetFormat I set it up, and then in CopyData I am writing to the…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

How do I pass DEVINTERFACE_AUDIO_CAPTURE into ActivateAudioInterfaceAsync?

I was looking at the docs for the WASAPI ActivateAudioInterfaceAsync() function and it mentions passing DEVINTERFACE_AUDIO_CAPTURE as deviceInterfacePath to activate the interface on the default audio capture device. That seems like a good practice…
Filip Skakun
  • 31,624
  • 6
  • 74
  • 100
0
votes
1 answer

UWP Real time audio on windows 10

I would like to ask you: In my company I should develop the communication app. Something like Skype etc. We have our custom SIP implementation. Data are encrypted by RSA, or something like that. Now, I'm looking for some solution, how to implement…
JuP
  • 535
  • 1
  • 6
  • 23
0
votes
1 answer

Set WMP volume level

What i want to do is set the Windows Media Player's volume level. By default the volume is in-/decreased by 10% when e.g. clicking the down or up menu item (Play -> Volume -> Up), but this is, in my opinion, not fine enough (especially when e.g.…
Streamline
  • 952
  • 1
  • 15
  • 23
0
votes
1 answer

Wasapi Exclusive mode with Hardware Acceleration doesn't seem to work

We have an application that uses Wasapi in event-driven exclusive mode, and it works fine on most devices. However, when we run across a machine that has enabled Hardware Acceleration for the playback device properties, we get silent output. No…
Chuck D
  • 313
  • 2
  • 13
0
votes
0 answers

Capturing specifics from audio streams

My aim is to capture two variables from an audio stream, these being frequencies and decibel level of each frequency (several frequency ranges is desired, so I'll end up grouping them, unless WASAPI can pull frequency ranges from the audio stream).…
PurplProto
  • 143
  • 2
  • 14
0
votes
1 answer

Upgrading audio code to new WASAPI standard

We have an application that uses waveXXX() and mixerXXX() functions to handle the audio I/O to and from some instruments (think: oscilloscope or electronics rather than musical instruments, not that it much matters). It's finally time to stop…
omatai
  • 3,448
  • 5
  • 47
  • 74
0
votes
0 answers

Windows audio API - session removed notification

I'm currently working on audio sessions. Let's say I have an audio session which was obtained by enumerating all sessions with GetSessionEnumerator and GetSession. It is possible to register notifications to know when the sessions had its volume…