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

Empty BYTE vector from Wasapi stream capture session

My main goal is to capture 2 audio streams and store them as a vector then come up with a congruence algorithm to check for equality. Right now I am only capturing one stream, however the values of the stream are 0 '/0'. Why am I getting null…
lonious
  • 676
  • 9
  • 25
0
votes
3 answers

0x00000010 Error reading characters of string. PROPVARIANT structure

Here's how I obtain the PROPVARIANT structure with WASAPI API related functions: //Pointer for stored audio stream IAudioClient *iac = NULL; //Endpoint device selection IMMDeviceEnumerator *pEnumerator = NULL; IMMDevice…
lonious
  • 676
  • 9
  • 25
0
votes
1 answer

Unresolved External Symbol for IAudioClient::Initialize method. WASAPI API

I'm trying to get an input audio stream recording sample up and running through the WASAPI tools. Here's a link to what I mean: http://msdn.microsoft.com/en-us/library/windows/desktop/dd370800(v=vs.85).aspx Here's the related code: #include…
lonious
  • 676
  • 9
  • 25
0
votes
3 answers

Wasapi audio quality

Im new to using Wasapi in Naudio and Im having n issue with the sound quality. About 1/10 times the audio will sound perfect when I record and the other 9 times it will be fuzzy. I was wondering if there is any reason for this. Here is my code i'm…
0
votes
0 answers

Using WASAPI api to capture voice input through microphone, but just getting some noise

I am new to WASAPI, following the msdn reference code, here, http://msdn.microsoft.com/en-us/library/windows/desktop/dd370800(v=vs.85).aspx, to capture audio using WASAPI apis. Modified msdn reference code slightly for my purpose. I am using a…
user3622275
  • 21
  • 1
  • 6
0
votes
1 answer

Convert between different wave formats (WAVEFORMATEX)

I'm writing a real-time audio application that runs a stream in exclusive mode. In order to properly present data to the device, it needs to arrive in a format that isn't of my own choosing. All of my audio processing is done with floating point…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
0
votes
1 answer

C++: Convert float[] to unsigned char* or BYTE*

I'm developing a project where I need to convert PCM 16-bits 2 channels sound into a IEEE Float 32-bits 2 channels. To do this I'm using the following code: void CAudioConverter::ConvI16ToF32(BYTE* pcmFrom, BYTE* floatTo, int length) { short*…
Nuno Centeio
  • 311
  • 3
  • 13
0
votes
0 answers

Register an EventHandler such that an event is generated whenver current volume output level as visualized in audio Mixer changes

This is in continuation of this question: Getting individual windows application current volume output level as visualized in audio Mixer How to register an EventHandler which gets called whenever the current output volume of an application (such as…
mio
  • 159
  • 1
  • 1
  • 12
0
votes
2 answers

Core Audio (WASAPI) buffer event timing

I'm using the Windows core audio functions, mostly WASAPI, to render an exclusive stream, following the example in Exclusive-Mode Streams. This creates two alternating buffers played and filled alternately. There is an event tied to buffer…
0
votes
1 answer

Calls to WASAPI's SetAudioEndpoint() causing odd microphone behavior on WP8

I've been developing a VoIP App for Wp8 that is based on the Chatterbox Sample App. Things were going smoothly until I started working with changing audio endpoints. I posted this…
HarryHippo
  • 267
  • 1
  • 2
  • 9
0
votes
1 answer

Wp8 SetAudioEndpoint messing with audio hardware clock?

I'm using WASAPI to capture and render audio for a VoIP application on Windows Phone 8. The app works fine when using the earpiece, but as soon as I switch to speakerphone, a distinct clicking noise appears on the far end. Looking into the timing of…
HarryHippo
  • 267
  • 1
  • 2
  • 9
0
votes
1 answer

use Serial Device to control Application Volumes

I've built an external device to control the levels of Windows7-Applications. Serial communication works, but I'm struggling with the built-in Windows Audio Session API (WASAPI). In particular, I've got two questions: Does the WASAPI fit for my…
Finwood
  • 3,829
  • 1
  • 19
  • 36
0
votes
1 answer

How to access Individual Microphone from Microphone Array(Win 8.1)

I want to access individual microphone in mic array, for testing quality purpose. How can I access that using c# ? Can I use NAudio for it ? How can i use WASAPI for it ? Thank you
CodeR
  • 156
  • 1
  • 8
0
votes
1 answer

WASAPI lagging playback

I'm writing a program to windows store in c++ which plays back the microphone. I have to modify the bits before sending that to the speakers. Firstly I wanted to play back the microphone without any effect bit it is lagging. The frequency and the…
DalekSupreme
  • 1,493
  • 3
  • 19
  • 32
0
votes
1 answer

How to merge to sound files in WP8?

It it possible to merge sound captured from microphone with an mp3 file selected and save as a new mp3 file in windows phone 8? Does naudio have wp8 support??
d3vil
  • 11
  • 1
  • 5
1 2 3
15
16