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 sample for Windows Store using pointer to released buffer

I'm working with the Audio Capture portion of the Windows Audio Session (WASAPI) sample for Windows 8.1 Store, last update 3/24/2015. I'm writing because I can see examples of code that appears to be wrong or overly complicated. I'm guessing that's…
1
vote
1 answer

How to control windows master audio in python script

going off of the suggestion by abarnert in Python: Change Windows 7 master volume I'm trying to write a python script to control the master volume in windows 7 I understand that in C++ this can be done like so: const CLSID CLSID_MMDeviceEnumerator =…
Alex Tremblay
  • 383
  • 4
  • 6
1
vote
1 answer

WASAPI Loopback: Save wave file

I want to record the system's audio output using WASAPI and then saving it to a .wav file. So far I've followed these guides on…
qwertz
  • 14,614
  • 10
  • 34
  • 46
1
vote
1 answer

Audio latency versus reliability

Is there any tradeoff between latency and reliability in an audio stream on Windows using WASAPI? That is, if I'm programming a WASAPI application and I want the minimum latency, will the audio stream be subject to more pops and clicks and audio…
omatai
  • 3,448
  • 5
  • 47
  • 74
1
vote
1 answer

How to increase battery efficiency for a voice recording application in Windows Phone 8?

I have developed a voice recording app using WasApi for Windows Phone 8. But users are facing battery problem a lot and also the screen is not getting timeout while the recording is on. And if users press the lock button on background recording is…
Krrish
  • 271
  • 3
  • 17
1
vote
1 answer

NAudio WasapiLoopbackCapture ComException (0x88890003)

I am trying to use the WasapiLoopbackCapture class (NAudio 1.7.1.17) and ending up with the COMException (0x88890003). The recording format is WaveFormat(44100, 16, 2). I have multiple playback devices on my system and have tried setting each one as…
Raheel Khan
  • 14,205
  • 13
  • 80
  • 168
1
vote
0 answers

WASAPI Exclusive Event Driven skip detection

I have an app that uses WASAPI Exclusive Event Driven mode. The Microsoft example code for this is not far from what I'm doing. We have a problem where if the CPU is taxed enough, we skip over one of the 3ms buffers we were supposed to write. In…
cowtung
  • 91
  • 8
1
vote
1 answer

NAudio WASAPI recording device with more then 2 channels throws unsupported format error

I faced a problem with recording WASAPI loopback device having 6 or 8 channels using NAdio library. E.g. Device has following wave format: 32 bit PCM: 44kHz 6 channels wBitsPerSample:32 public MMDevice Device; private WasapiCapture…
Alexander
  • 315
  • 4
  • 11
1
vote
1 answer

How can I change the audio format of a voice?

I'm messing around with SAPI on Windows, and I've noticed that the audio quality of voices is quite underwhelming. By comparing the audio quality of a simple test program and various qualities that eSpeak provides, I've concluded that the default…
hauzer
  • 258
  • 3
  • 12
1
vote
1 answer

How can I change audio output device default share mode sample rate in Windows 7?

I am using windows audio core api to do loopback-capture, and failed on this: // spClient is a smart comptr wrapped IAudioClient hr = spClient->Initialize(AUDCLNT_SHAREMODE_SHARED, AUDCLNT_STREAMFLAGS_LOOPBACK,iRequestedDuration, 0,…
bigbigcat
  • 11
  • 3
1
vote
0 answers

AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY sometimes set, sometimes not

I try to make a simple VoIP app for windows phone8 using WASAPI.In some run of the project By Calling hr = m_pCaptureClient->GetBuffer(&pbData, &nFrames, &dwFlags, nullptr, nullptr) after some minutes dwFlags repeatedly set to 1…
harsini
  • 326
  • 2
  • 14
1
vote
1 answer

Controlling a Specific Application's Volume Level

Can NAudio be used for setting the volume level of a specific application? { Over Windows 7 } I've found this thread, referring to the issue, suggesting to self-implement the required solution over WASAPI, but I'd prefer a simpler solution,…
Bliss
  • 426
  • 2
  • 5
  • 19
1
vote
1 answer

Adding audio effects (reverb etc..) to a BackgroundAudioPlayer driven streaming audio app

I have a windows phone 8 app which plays audio streams from a remote location or local files using the BackgroundAudioPlayer. I now want to be able to add audio effects, for example, reverb or echo, etc... Please could you advise me on how to do…
Matt Daley
  • 458
  • 3
  • 15
1
vote
1 answer

IPropertyStore_Commit method - is it needed and why isn't it implemented?

I'm trying to change the value of a flag in an IPropertyStore. However, my code seems to behave the same way, regardless of the value of the flag. Is this because my code doesn't call IPropertyStore_Commit after changing the flag? I did try to…
tjlprice
  • 11
  • 1
1
vote
1 answer

Set sample rate in windows 7

I'm currently struggling to find a solution to programmatically set the sample rate and bit rate of a USB sound card. I'm working on switching over our test program from Windows XP to Windows 7, and we have a product that acts like a USB soundcard.…
Calvin
  • 710
  • 1
  • 10
  • 28