247 questions
1
vote
1
answer
81
views
Playing audio independently of audio volume
How to play audio independently of system master volume? For example if my app has its volume set to 40, then the user increases their volume to 45 (assuming both mixers were starting at 40), the ...
2
votes
1
answer
155
views
gstreamer audio channel mapping
I want to implement the following target architecture:
One pipeline for each received network RTP streams via udpsrc (more than 10 in total)
One pipeline for each device which mixes multiple network ...
1
vote
0
answers
140
views
How can I determine if a Windows Audio Endpoint is associated with a Bluetooth device?
Using WASAPI, I am successfully enumerating the output devices using IMMDeviceEnumerator::EnumAudioEndpoints and then eventually I have my IMMDevice. Then I can get the IPropertyStore and see there ...
1
vote
0
answers
128
views
Linphone sdk 5.2.114 occasionally hangs on ending audio stream, windbg kernel debugging found USB ZwDeviceIoControlFile hanging
When using linphone sdk 5.2.114, I found it occasionally hangs on customer's windows 7 machine, using usb headset, when the sip call is turning to hold mode(recvonly). The sdk trys to end audio stream ...
0
votes
0
answers
121
views
Difference between two IAudioClient::Initialize return values
I'm having trouble understanding the documentation for the IAudioClient::Initialize() function.
It's about the different return values E_INVALIDARG and AUDCLNT_E_UNSUPPORTED_FORMAT.
The E_INVALIDARG ...
0
votes
1
answer
122
views
How to mix audio data input from microphone with custom PCM data in Windows?
How to mix an audio data into an input stream, coming from a microphone in Windows without a virtual device or a custom driver, using WASAPI or similar API within Windows?
0
votes
1
answer
109
views
How can I encode multiple mediaStreamSource as one file in uwp?
I want to record a section of my monitor and system audio. I will capture screen using wgc and audio using wasapi.
https://learn.microsoft.com/ko-kr/windows/uwp/audio-video-camera/screen-capture-video
...
2
votes
1
answer
417
views
Delayed audio when capturing process-specific audio loopback interface
I'm experiencing a 30-50ms delay when playing back the captured audio by the Windows-classic-samples/ApplicationLoopback sample. I noticed this when I played the captured audio over the original ...
1
vote
0
answers
72
views
WASAPI IMMDevice underlying physical sound card
I'm trying to pair together IMMDevice instances (input/output) that belong to the same physical sound card, f.i. "Line" input and "Speakers" output. How can I, given two IMMDevice ...
0
votes
0
answers
120
views
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 ...
0
votes
2
answers
189
views
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 ...
0
votes
0
answers
227
views
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 ...
1
vote
1
answer
171
views
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 ...
0
votes
1
answer
556
views
Windows 11: Audio channels are swapped on a 5.1 system with DirectSound, but WASAPI works
Setup
Intel NUC 11 as HTPC -> HDMI-CEC -> Denon AVR-X2500H -> HDMI-CEC -> LG 55SJ800V
Steps to reproduce
Note, I tried Ubuntu 22.04 first, but to avail. Best I got was stereo output after ...
1
vote
0
answers
121
views
Wasapi : how to create a router mixer
I'm trying to create a mixing table with Wasapi.
I create and retrieve samples from Input Card then send it to Output Speaker.
But how to create matrix with subvoice that will not being playing ...
0
votes
1
answer
135
views
ISimpleAudioVolume G/SetMute not updating
Solution: I reference the pointer of a variable instead of the variable itself. Thank you @RomanR.
I'm trying to use GetMute/SetMute through ISimpleAudioVolume, and I'm having trouble with what I'm ...
0
votes
1
answer
555
views
Microsoft WASAPI - Do different audio formats need different data in the buffer, for the same wave
Lets say I want to play a sine wave using WASAPI.
Will the data I enter into the AudioClient buffer always just be samples between -1 and 1, or will it be different between PCM and IEEE_Float Formats, ...
4
votes
0
answers
980
views
Encoding and decoding audio using opus - WINDOWS?
I am trying to capture audio from the default device and stream with the help of OPUS.
The audio from the device is captured using WASAPI.
Encoding and decoding is done using OPUS where the states are ...
1
vote
1
answer
85
views
Why is the last byte of a WasapiLoopbackCapture sample always 3B,3C,3D,3E,BC,BC or BE
I am writing a program to display audio samples on a time/amplitude graph.
I want to use the real-time audio playing on the computer and am using WasapiLoopbackCapture from the CSCore library, but the ...
1
vote
0
answers
265
views
WASAPI: Getting the actual wave format a device is initialized with
I need to programmatically get a wave format (WAVEFORMATEX structure) of the initialized WASAPI rendering audio device. IAudioClient::GetMixFormat doesn't fit in this case, because IAudioClient::...
4
votes
1
answer
296
views
How to record an input device with more than 2 channels to mp3 format
I am building a recording software for recording all connected devices to PC into mp3 format.
Here is my code:
IWaveIn _captureInstance = inputDevice.DataFlow == DataFlow.Render ?
...
2
votes
1
answer
424
views
Create a gstreamer sink that appears in the list of audio devices on Windows
I would like to write a gstreamer pipeline that mixes the audio from two sources. I then want to be able to select an audio source from an app on my computer, i.e. Discord, such that the mixed audio ...
1
vote
0
answers
339
views
Is there a way to obtain WASAPI loopback recordings using MediaStream Recording API?
The first question on StackOverflow after many years of copypasting!
Do you know how to access the Windows WASAPI driver in order to obtain audio loopback capabilities on React?
Tried out using ...
0
votes
0
answers
490
views
Record from mic and speaker at the same time using wasapi
Hello i've trying to use wasapi to record and playback using two threads but I encountered one problem which is I don't know how to save the both streams in one buffer is there a way to do that like ...
2
votes
1
answer
647
views
Correctly setting up MMDevice in a DirectX project
I am currently trying to piece together a shader-based music visualizer. The plan is to read data from the current MMDevice, which I'm trying to follow the documentation for, but I must be doing ...