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

WASAPI + windows store app initialization

I am trying to write a program which captures your speech applies my effect on the captured audio and play it back immediately. I am writing this app to the windows store in c++. After suffering with MediaCapture I decided to use WASAPI to do that.…
DalekSupreme
  • 1,493
  • 3
  • 19
  • 32
1
vote
1 answer

handling specific applications volume-level

Using WASAPI, I could control system volume. I wonder, I can control the specific application's volume level programmatically. (of course, this is after windows7 only) is it possible?
JayMuzie
  • 341
  • 1
  • 4
  • 16
1
vote
0 answers

WASAPI: Session not expiring

EDIT: I did not pass the appropriate flags into the initialize method, I think the Audio Sessions page on MSDN is slightly misleading in this regard as it seems to suggest it is default behavior, however the default behavior is that sessions are…
Adwo
  • 171
  • 1
  • 10
1
vote
1 answer

Should I use DirectSound or WASAPI for my audio project?

I am starting a project where minimum requirements will be Windows 7. I'll be using NAudio as my interface to audio. I am not sure what I should be using: DirectSound or WASAPI? I am going to be doing the following: Manipulating volume/mute on…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
1
vote
1 answer

Error using WASAPI with PortAudio on Win7

I'm trying to use PortAudio and libsndfile to play .wav files in exclusive mode on my Windows 7 machine, but I'm getting error number -9984 "Incompatible host API specific stream info" . I've filled out the PaWasapiStreamInfo struct as…
Tyler_Storm
  • 113
  • 2
  • 7
1
vote
2 answers

Fail to generate correct wav file from raw stream

I captured raw audio data stream together with its WAVEFORMATEXTENSIBLE struct. WAVEFORMATEXTENSIBLE is shown in the figure below: Following the standard of wav file, I tried to write the raw bits into a wav file. What I do is: write…
Min Lin
  • 3,177
  • 2
  • 19
  • 32
1
vote
2 answers

More then one audio session per single application instance

Does WASAPI or Media Foundation allow creating several audio sessions for single process?
Alexandr
  • 11
  • 1
  • 1
1
vote
0 answers

WASAPI C++ DLL Threads hanging in C# App

I've looked pretty thoroughly for a similar question but haven't really found the exact case I have. I have an unmanaged dll for an audio app that creates a thread and waits for an event from the sound card to fill the output buffer. The app works…
0
votes
1 answer

What's wrong with this GetDefaultAudioEndpoint program?

Here's a very simple program using the function: #include #include #include #include #include #include #include using namespace std; int…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
0
votes
0 answers

AudioFrameInputNode -> AudioFileOutputNode

I want to take uncompressed audio frames (Loopback Recording) and save it to an encoded file. I tried to use the AudioGraph API. I was hoping if AudioGraph.PrimaryRenderDevice was null then the Quantums would only fire when the AudioFrameInputNode…
Tom Huntington
  • 2,260
  • 10
  • 20
0
votes
2 answers

Recording Audio using XtAudio in VB.NET

I have VB.NET project that I developed over 10 years ago to record audio. The original project started out using DirectSound in VB5, then I migrated it over to VB.NET and changed to XNA. Part of the program reads data from an Access database that it…
0
votes
0 answers

NAudio / CSAudio BufferMilliseconds for WasapiCapture

I'm sending a WasapiCapture device to a class that visualises the waveform in realtime using device.DataAvailable. I want to change the size of audio data that triggers DataAvailable such that it cuts the incoming stream into data of 500ms in…
Zyzyx
  • 492
  • 4
  • 18
0
votes
0 answers

How can I capture multiple audio buffer using iaudiocaptureclient and sinkwriter?

I tried to use sinkwriter to capture video and audio at the same time, and it worked, but I could only use one audio source. I would like to capture two or more different audio sources (system loopback and microphone for example). What I tried was…
0
votes
0 answers

Change another process audio output device on Windows

Ultimately I want to redirect process audio output elsewhere in real time. There's a standard way to do that via WASAPI: AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS. The problem is this approach keeps the process playing its audio to the default output…
LOST
  • 2,956
  • 3
  • 25
  • 40
0
votes
0 answers

WASAPI stream attenuation on non-communication devices - should it work?

I have build custom SIP/RTP softphone which uses WASAPI for audio input / output. Windows 10 is lowering other audio streams volume when call comes and restores it back when call is finished. I know this is called "stream-attenuation" or "audio…
Dmytro
  • 530
  • 4
  • 18