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
2 answers

No sound output with WASAPI

I am having trouble with WASAPI. It do not output any sound and I have been checked the data that writing to the buffer. Because of it does not output any sound, I haven't any idea to find out the problem. It may have some problems in following…
2
votes
1 answer

Resample audio using libsamplerate in windows phone

I'm trying to re-sample captured 2channel/48khz/32bit audio to 1channel/8khz/32bit using libsamplerate in a windows phone project using WASAPI. I need to get 160 frames from 960 original frames by re-sampling.After capturing audio using GetBuffer …
harsini
  • 326
  • 2
  • 14
2
votes
1 answer

XNA Audio and WASAPI conflict?

I've recently been working on integrating some code for a VoIP application. On one end, the UI (mainly the dialer) uses the XNA Audio framework to play sound bytes (DTMF) on button presses. On the other hand, the actual call module uses WASAPI for…
HarryHippo
  • 267
  • 1
  • 2
  • 9
2
votes
1 answer

Resampling PCM audio windows store app

With the help of following example code, I successfully wrote an application to capture microphone audio in PCM format. The following is the wave format of the captured PCM audio: Channels = 2 FormatTag = Pcm SamplesPerSecond = 44100 BitsPerSample =…
2
votes
2 answers

WASAPI capture buffer size

I am using WASAPI in wp8.As I use Getbuffermethod in shared mode each time it returns buffers with different size.I am capturing in 8000Hz/16bit and sometimes Getbuffer returns buffer with 80 samples and sometimes with 400 samples and .Is this a…
harsini
  • 326
  • 2
  • 14
2
votes
1 answer

How can I process chunks of sound data from a WASAPI stream without writing them to a file?

I'm fairly new to WASAPI, and I'm trying to write a program in C++ that looks at the audio stream on the primary playback device and performs a FFT on every chunk via fftw3, does something with the result, and discards the chunk. Every example I've…
2
votes
2 answers

Capturing microphone audio using Naudio + WASAPI?

I am looking for an example code on how to capture microphone audio using Naudio + WASAPI. (I am not interested in direct to disk recording, what i need is to process the input buffer in realtime in order to do some audio effects.) I've searched a…
AudioMaster
  • 21
  • 1
  • 2
2
votes
1 answer

Is it possible to capture the rendering audio session from another process?

I am taking my first dives in to the WASAPI system of windows and I do not know if what I want is even possible with the windows API. I am attempting to write program that will record the sound from various programs and break each in to a separate…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
2
votes
1 answer

Linking WASAPI in VS 2010

I am using Visual Studio 2010 and have included these headers: #include #include Referencing, among others, these functions: CoCreateInstance IMMDeviceEnumerator::GetDefaultAudioEndpoint IMMDevice::Activate I've…
MattD
  • 1,324
  • 4
  • 14
  • 28
2
votes
1 answer

Is DirectSound and WinMM based on WASAPI?

I saw in this slides that the winmm and directsound in vista is based on wasapi. Does it means that winmm and directsound actually do their work by calling the functions in WASAPI ? I fail to find this information after some google search and hope…
Min Lin
  • 3,177
  • 2
  • 19
  • 32
2
votes
1 answer

Exclude data from being captured by loop-back mode in WASAPI

Is it possible to exclude audio data from being captured by the IAudioClient loop-back mode (AUDCLNT_STREAMFLAGS_LOOPBACK) or to render a audio stream that will not be contained in the loop-back captured audio data. A stream in exclusive mode…
1
vote
2 answers

How to change WASAPI record bitrate with NAudio?

I'm using NAudio to decode, play and record a MP3 Stream. For recording I use WasapiLoopbackCapture to save the stream to a wav file: if (waveIn == null) { waveIn = new WasapiLoopbackCapture(); writer = new WaveFileWriter(outputFilename,…
Jan K.
  • 2,542
  • 2
  • 21
  • 30
1
vote
0 answers

Trouble synchronizing real-time audio visualization with generated audio samples

I am trying to build an application that visualizes the waveform of generated audio samples. The application continuously generates audio samples, fills a buffer, and supplies said buffer to WASAPI for playback. The user can change the frequency of…
1
vote
1 answer

How can I adjust the volume of the left or right channel of a sine wave individually?

I am trying to adjust the volume of each individual channel in a sine wave for stereo output. I am simply outputting this using WASAPI, with a 32 bit IEEE-float stereo format. I have a sine wave in 32 bit IEEE-Float format, and I try to set the left…
1
vote
0 answers

(WASAPI Loopback capture) how to capture audio before it gets modified by audio enhancements like Equalizer APO

I have a visual C++ app that captures audio from the default communications playback device using WASAPI Loopback capture. the captured audio is not affected by the device's volume setting (which is what I want), but, it is affected by Equalizer…
Tiger Yang
  • 61
  • 4