Quantcast
Channel: wdmaudiodev

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Hello Dylan, endpoint info and re-populate everything from scratch? Unfortunately, the only reliable way is to uninstall and reinstall the device. A less reliable way is to restart Windows. The caching problem was already discussed here several times. MS representatives believe that this uncontrollable caching is the ...

[wdmaudiodev] Re: USB MIDI multi-client driver creation

$
0
0
The problem is that the current generic windows MIDI driver does not provide multi-client capability so I decided to try and create mine ...

[wdmaudiodev] Re: USB MIDI multi-client driver creation

$
0
0
The problem is that the current generic windows MIDI driver does not provide multi-client capability so I decided to try and create mine Στις Τετ 8 Νοε 2023 στις 5:04 μ.μ., ο/η Radosław Pietrzyk radoslaw.pietrzyk@xxxxxxxxx έγραψε: create a new one ? śr., 8 lis 2023 o 15:13 Nikos Terzis nikosterzis08@xxxxxxxxx napisał(a): ...

[wdmaudiodev] Re: [EXTERNAL] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
If you are developing a driver and swap out the driver binary without going through an uninstall and reinstall process, then the mmdevice cache can go out of sync with the driver capabilities. The simplest way to remove all of the mmdevice entries is to uninstall the driver and reinstall. This solution has the benefit of also deleting any values stored directly on the PNP interfaces for the driver. When a driver implements controls for volume, mute, treble, bass, midrange, loudness, or agc, the last set values for these controls are stored on the PNP interface, not on the mmdevice. So, the best way to clear all persisted values, mmdevice and PNP ...

[wdmaudiodev] Re: [EXTERNAL] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Fantastic information, thank you! I did manually uninstall and reinstall the device many times, but it was leaving all of the keys under MMDevices\Audio\Render related to it regardless. The PNP device that the audio driver attaches to is actually created by a different driver (a filter driver on top of the WDDM driver for the GPU's video display - there are three separate drivers involved here; it's a mess, I know!), and even completely uninstalling all devices from the ground up left the audio keys there. Completely wiping the Render keys as described seems to have finally forced it to re-update. It's still broken, but at least I know that it's not broken because of this! ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
Before going too far on the legacy MIDI implementation, you should be aware of where MIDI is going on Windows. For MIDI 2.0 we are collaborating with AMEI and AmeNote on developing a new USB MIDI 2.0 driver which supports both USB MIDI 1.0 and MIDI 2.0 peripherals. We're also creating a new DDI for MIDI drivers which replaces the KS implementation that performs an IOCTL to send and receive MIDI messages (extremely slow) with a memory mapped buffer and eventing, similar to what is used by WaveRt for audio. In preliminary testing we're seeing ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
From what I've read, Foobar2000 has included KS support built-in since 2009. In the output devices, I can select mine in exclusive mode which I assume is directly connecting to the KS pin? There are no explicit options I've been able to find indicating exactly how it's outputting the audio, but I can't imagine this device in exclusive mode isn't a direct connection. I'll look around for some other programs that are more explicit about exactly how they're connecting to the device, or maybe I'll write something myself so I know for sure. ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
[heart] Pete Brown (WINDOWS) reacted to your message: ________________________________ From: wdmaudiodev-bounce@xxxxxxxxxxxxx wdmaudiodev-bounce@xxxxxxxxxxxxx on behalf of Gary Daniels dmarc-noreply@xxxxxxxxxxxxx Sent: Wednesday, November 8, 2023 5:41:14 PM To: wdmaudiodev@xxxxxxxxxxxxx wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation Before going too far on the legacy MIDI implementation, you should be aware of where MIDI is going on Windows. ...

[wdmaudiodev] Re: [EXTERNAL] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Ahh, yes. Uninstalling will delete the mmdevice keys for every endpoint type but HDMI and DisplayPort. AudioEndpointBuilder deletes the audio endpoint data when the PNP interface is removed from the system. When typical audio drivers are updated the new driver is installed on top of the old driver, leaving the old driver in the PNP driver store and never removing the PNP interfaces. HDMI is special because display driver update packages often perform an uninstall and reinstall of the display and display audio drivers as part of the ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
Could you provide me with some instructions on how to implement the driver in order to have multi-client capability? Is there any video? I already have Test Signing on on my machine Στις Τετ 8 Νοε 2023 στις 7:41 μ.μ., ο/η Gary Daniels dmarc-noreply@xxxxxxxxxxxxx έγραψε: aware of where MIDI is going on Windows. ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
It looks to me that you have no bloody idea what you are trying cope with... śr., 8 lis 2023 o 20:44 Nikos Terzis nikosterzis08@xxxxxxxxx napisał(a): in order to have multi-client capability? Is there any video? I already have Test Signing on on my machine Στις Τετ 8 Νοε 2023 στις 7:41 μ.μ., ο/η Gary Daniels dmarc-noreply@xxxxxxxxxxxxx έγραψε: ...

[wdmaudiodev] Re: [EXTERNAL] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
That makes a lot of sense, since yes this is presenting as an HDMI audio output. I'll actually try changing it to be standard speakers, maybe there's something going on between the fact that there's a WDDM driver and this separate HDMI interface audio driver that's causing problems? FWIW, the driver stack I'm using has a WDF filter driver above the WDDM display-only driver. The WDF filter creates a new PDO for the audio device, and a third driver is attached to that PDO to handle the audio. This setup is required because my toy GPU doesn't actually support all the hardware features required for a full WDDM driver (no programmable shading support), ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
Well, can you help me? Provide me with some links to read on how to start maybe? Στις Τετ 8 Νοε 2023 στις 9:51 μ.μ., ο/η Radosław Pietrzyk radoslaw.pietrzyk@xxxxxxxxx έγραψε: with... śr., 8 lis 2023 o 20:44 Nikos Terzis nikosterzis08@xxxxxxxxx napisał(a): ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
Are you guys confusing this board with an instant messaging service? Well, can you help me? Provide me with some links to read on how to start maybe? Στις Τετ 8 Νοε 2023 στις 9:51 μ.μ., ο/η Radosław Pietrzyk radoslaw.pietrzyk@xxxxxxxxx ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
No, I just asked about where to start that is it. Why would we use it as an instant messaging service? Στις Τετ 8 Νοε 2023 στις 9:57 μ.μ., ο/η Harasemiuc Andrei andrei.harasemiuc@xxxxxxxxx έγραψε: On 8 Nov 2023, at 21:55, Nikos Terzis nikosterzis08@xxxxxxxxx wrote: ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
At this point, are you still asking about writing a new driver, or are you asking how to install the upcoming Windows MIDI Services MIDI 2.0 driver and service? If the latter, please understand that that driver, service, and API work together, and although the work is planned, it does not currently work with the older winmm MIDI API at all. It's a developer preview, not for customers, like Gary said. We'll have a new developer preview out later this month, but again, it won't work with the applications you have installed today. ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
On Wed, 8 Nov 2023 at 17:43, Dylan Barrie dylan.barrie@xxxxxxxxx wrote: In the output devices, I can select mine in exclusive mode which I assume is directly connecting to the KS pin? There are no explicit options I've been able to find indicating exactly how it's outputting the audio, but I can't imagine this device in exclusive mode isn't a direct connection. You need the foo_out_ks plug-in to use Kernel Streaming in foobar2000. Exclusive mode refers to WASAPI Exclusive which is still at least one layer removed from KS. ...

[wdmaudiodev] Re: [EXTERNAL] Re: USB MIDI multi-client driver creation

$
0
0
Nikos Terzis wrote: No, I just asked about where to start that is it. Why would we use it as an instant messaging service? He was  being sarcastic, because you have had 9 messages in one day. Did you read the web site where it says *There are no usable builds, currently. ?* ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Ah, gotcha. Sorry, I was clearly being quite dense there! I'm now using that Virtual Audio Cable tool by the guy who made Audio Repeater KS, and coupled with an audio player that lets me target the virtual audio cable, I think I've got it configured to directly talk to my WaveRT's render pin; playback through a program that lets me specify the VAC as the output device, and then using Repeater KS to connect the other end of the VAC directly to my WaveRT instance. Given that it's showing the name of the WaveRT instance and not the name of the device in Repeater, I'm pretty certain that it's now configured in a way that will have the VAC ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Hello Dylan, 2009. Maybe KS plugin was included in some distribution packages, but now it isn't added to the standard package. To use KS, you need to download the plugin (component): ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Hi Eugene, that's exactly what I'm doing now (see the details of the last email I sent to the thread), and it is working! When I use Audio Repeater KS plus a virtual audio cable (great tools, by the way!), I get all the all the expected callbacks to my WaveRT instance. It doesn't seem to be using event-based processing (it never makes calls to register any notification events, and I get calls to GetPosition instead), but it does write audio to the buffer and I can successfully DMA that data to my hardware and get audio playing through it. I actually spent a good few minutes thinking the odd chime I was suddenly hearing was coming from ...

[wdmaudiodev] Re: Audio driver issues, No speakers or headphones are plugged in.

$
0
0
Hello Dylan, register any notification events For some reason I don't understand, PortCls restricts the maximum value of NotificationCount (the number of packets) to 2, returning an error for greater values, so Audio Repeater doesn't use event notification mode if the number of buffers is different from two. If you change Buffer parts to 2, you will see NU (notifications used) in Modes field, ...

[wdmaudiodev] Virtual microphone driver which receives audio data from user mode app

$
0
0
Hello?? I want to develop a virtual microphone driver which receives audio data from my user mode app. The virtual microphone can be used by video conferencing app like Teams. I reference a github project: nbsp; It is a WDM based Virtual Audio Device Driver and can be used as an Audio Loopback Device. nbsp; I think this project is modified according to Microsoft ...

[wdmaudiodev] Default Audio Format after Driver Installation ?

$
0
0
Hello, This year, we have built new audio driver for Win10/11 from the SYSVAD example, and when we install it 1. The default format for the playback device is 48kHz 24 bit Stereo ...

[wdmaudiodev] Re: Default Audio Format after Driver Installation ?

$
0
0
Hi Vincent, All is done in the PKEY_AudioEngine_OEMFormat which can be set in the .INF file as : ;; Default Format : S24_LE@48kHz/STEREO. HKR, EP\\0 , %PKEY_AudioEngine_OEMFormat%, %REG_BINARY%,41,00,00,00,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,DC,05,00,08,00,20,00,16,00,18,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71 You can check ...

[wdmaudiodev] Re: Default Audio Format after Driver Installation ?

$
0
0
Of course we have tried this, but it does not work. The default format is always 44.1kHz for recording pin after installation. Also in the driver code, we are already defining default format, but it’s not taken in account. ...

[wdmaudiodev] Re: [EXTERNAL] Re: Default Audio Format after Driver Installation ?

$
0
0
It's ultimately up to the Windows audio engine what format it chooses as the default, but there are various things a driver developer can do to influence that choice. The most foolproof method to force a default is to support only one format From: wdmaudiodev-bounce@xxxxxxxxxxxxx wdmaudiodev-bounce@xxxxxxxxxxxxx On Behalf Of VB-Audio Sent: Thursday, January 11, 2024 7:46 AM To: wdmaudiodev@xxxxxxxxxxxxx ...

[wdmaudiodev] Re: [EXTERNAL] Re: Default Audio Format after Driver Installation ?

$
0
0
Is there any publication for the algorithm used by the audio engine? ...

[wdmaudiodev] Re: [EXTERNAL] Re: Default Audio Format after Driver Installation ?

$
0
0
Hello Vincent, Colleagues, in accordance to investigations I did previously under Win 11 you may need also to implement getter for KSPROPSETID_Pin / KSPROPERTY_PIN_PROPOSEDATAFORMAT (in addition to KSPROPERTY_PIN_PROPOSEDATAFORMAT2). From the top of my head I've implemented these 2 getters in a similar way. At that time I've tested w/ Mediaplayer (render path) and Win audio recorder (capture path) apps. For Mediaplayer (render path) it was sufficient to implement KSPROPERTY_PIN_PROPOSEDATAFORMAT2. Stream got the expected default buffer ...

[wdmaudiodev] Re: [EXTERNAL] Re: Default Audio Format after Driver Installation ?

$
0
0
Hello, Thanks all for your different replies… We have implemented the KSPROPERTY_PIN_PROPOSEDATAFORMAT2 (will see if it brings some benefit…). ...

[wdmaudiodev] Re: [EXTERNAL] Re: Default Audio Format after Driver Installation ?

$
0
0
Yes, that’s correct, PKEY_AudioEngine_OEMFormat is {E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3 and setting it in the .inf is a supported way for audio driver vendors to influence the default format selection. There’s a sample here: PKEY_AudioEngine_OEMFormat {E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},0 is a private property key that Windows uses internally. Setting this key leads to undefined behavior and is not ...

[wdmaudiodev] VAD Loopback Pin ignored by Audio Engine

$
0
0
Hello, I added loopback pin in a simple Virtual Audio Device wave filter, and it works as expected when client applications are capturing the speaker endpoint data using basic WASAPI's IMMDevice::Activate, i.e. loopback stream is initiated, and driver provides data requested. However, when clients invoke  ActivateAudioInterfaceAsync with activation type loopback and target process Id (as in Application loopback audio capture - Code Samples) VAD driver's loopback pin is ignored, no stream associated with loopback pin originates. Could you tell me, am I missing something in my driver or Windows Audio Engine takes another path by design? ...

[wdmaudiodev] Re: [EXTERNAL] VAD Loopback Pin ignored by Audio Engine

$
0
0
Application loopback grabs the sound played by a particular application. There's also speaker loopback which is the mixed sound played by all applications, and the system itself, to a particular playback device. The loopback pin, if present, should be used for speaker loopback, but application loopback is always provided by the Windows audio engine From: wdmaudiodev-bounce@xxxxxxxxxxxxx wdmaudiodev-bounce@xxxxxxxxxxxxx On Behalf Of Sedrak Arakelyan Sent: Thursday, January 18, 2024 3:31 PM To: wdmaudiodev@xxxxxxxxxxxxx ...

[wdmaudiodev] Re: [EXTERNAL] VAD Loopback Pin ignored by Audio Engine

$
0
0
Thanks for the feedback, Matthew!Does it mean that audio device can't have any control on its endpoint's application loopback by design? Even if it has implemented KSPROPERTY_AUDIOENGINE_LOOPBACK_PROTECTION in  KSPROPSETID_AudioEngine property set or anything else? Thank you,Sedrak On Monday, January 22, 2024 at 10:28:20 PM GMT+4, Matthew van Eerde dmarc-noreply@xxxxxxxxxxxxx wrote: Application loopback grabs the sound played by a particular application. ...

[wdmaudiodev] Re: [EXTERNAL] VAD Loopback Pin ignored by Audio Engine

$
0
0
What do you want to do with the loopback? From: wdmaudiodev-bounce@xxxxxxxxxxxxx wdmaudiodev-bounce@xxxxxxxxxxxxx On Behalf Of Sedrak Arakelyan Sent: Tuesday, January 23, 2024 9:12 AM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: [EXTERNAL] VAD Loopback Pin ignored by Audio Engine Thanks for the feedback, Matthew! Does it mean that audio device can't have any control on its endpoint's ...

[wdmaudiodev] Re: [EXTERNAL] VAD Loopback Pin ignored by Audio Engine

$
0
0
Let me describe the whole picture in this case. We have implemented VAD device whose endpoints could selected by various meeting applications. Our user mode application captures audio on real microphone, cleans the noise, etc. and delivers to VAD mic endpoint which is selected by communication application. The reverse order is implemented for speaker, i.e.: VAD speaker gets the audio stream, our application retrieves the data, processes it and delivers to an available physical speaker. When communication applications (for instance MS Teams) share screen content along with audio, on the other meeting end, two audio streams one for VAD's another for real speaker could be heard. Thus, we suspected that meeting ...

[wdmaudiodev] Continued issues with No speakers or headphones are plugged in

$
0
0
I posted about this a few months ago, and have been trying to resolve it off-and-on since then. I've gotten to the point where I think I've tried everything I'm able to do, and I'm still quite stuck. Any advice would be greatly appreciated, as this is the last piece of the puzzle before the project I'm working on is finished. To keep it simple, I'm trying to write a WDM audio driver that allows audio to be played through a custom hardware GPU I've developed. The hardware works, and my WDM driver also works if I use a tool that can manually specify the KS endpoint and forcefully stream audio to it. The only issue ...

[wdmaudiodev] SYSVAD not compatible with Windows 10 LTSC 1809 or 1909

$
0
0
Hello, It seems Windows 10 LTSC 1809 or 1909 does not support ExAllocatePool2 function !?! But this is not the only problem: When we install our new driver based on ...

[wdmaudiodev] Re: SYSVAD not compatible with Windows 10 LTSC 1809 or 1909

$
0
0
? From: wdmaudiodev-bounce@xxxxxxxxxxxxx wdmaudiodev-bounce@xxxxxxxxxxxxx On Behalf Of VB-Audio Sent: 29 January 2024 09:40 To: wdmaudiodev@xxxxxxxxxxxxx Cc: 'Gary Daniels' Gary.Daniels@xxxxxxxxxxxxx ; 'Matthew van Eerde (^_^)' ...

[wdmaudiodev] Re: SYSVAD not compatible with Windows 10 LTSC 1809 or 1909

$
0
0
VB-Audio wrote: It seems Windows 10 LTSC 1809 or 1909 does not support ExAllocatePool2 function !?! But this is not the only problem: When we install our new driver based on current SYSVAD example, Windows 10 LTSC 1809 or 1909 cannot start it: ...

[wdmaudiodev] WaveRT output stream driver architecture

$
0
0
After realizing that the sysvad driver did work correctly and then spending a few days going line-by-line to figure out what was different between it and my driver, I finally realized that mine was failing due to my implementation of GetHWLatency setting non-zero values for any of the parameters. I'm still a bit perturbed that the result of that was for the OS to tell me that I didn't have speakers or headphones plugged into the HDMI port, but that's neither here nor there. I'm finally able to start moving data between the OS and my hardware, and getting audio playing. I've got stuff playing, but it's massively distorted, over/underflowing, and I think I may be misunderstanding how the architecture is meant to behave ...

[wdmaudiodev] HLK - KS Topology Test problem

$
0
0
Hi all, I'm trying to get a virtual audio driver through the HLK process so we can get it WHQL certified. Most of the HLK tests are passing, but we're having problems with the KS Topology test - two errors in particular: Node[0] (KSNODETYPE_PEAKMETER) incorrectly supports deprecated KSPROPERTY_AUDIO_PEAKMETER ...

[wdmaudiodev] Re: HLK - KS Topology Test problem

$
0
0
On 2/10/24 2:31 PM, Andrew Dancy wrote: I'm trying to get a virtual audio driver through the HLK process so we can get it WHQL certified. Why? ...

[wdmaudiodev] Re: SYSVAD not compatible with Windows 10 LTSC 1809 or 1909

$
0
0
OK! All problems disappear if there is no more reference to ExAllocatePool2 in our sys file. Thanks ...

[wdmaudiodev] Re: HLK - KS Topology Test problem

$
0
0
can get it WHQL certified. Why? trying to persuade them it's completely unnecessary but at the moment it's still a requirement. ...

[wdmaudiodev] Re: HLK - KS Topology Test problem

$
0
0
submissions? That's assuming I can even find the download, as MS appear to have scrubbed it from their website. This? ...

[wdmaudiodev] Re: HLK - KS Topology Test problem

$
0
0
On 2/12/24 8:06 AM, Andrew Dancy wrote: I'm trying to get a virtual audio driver through the HLK process so we can get it WHQL certified. Why? ...

[wdmaudiodev] Re: HLK - KS Topology Test problem

$
0
0
That's HLK which is what we're having some issues getting tests to pass - ...

[wdmaudiodev] How to enable Swap APO in SYSVAD sample driver without enhancement tab in windows 11?

$
0
0
For the past few weeks, we've been working with the SYSVAD sample driver. We cloned the SYSVAD driver and successfully installed it on our target machine. However, we've noticed that it's not a real driver meant for actual hardware; it's a virtual driver. This means it can't handle actual playback audio or record audio from the microphone. When we capture the output of the SYSVAD speaker, we see a sine wave because SYSVAD generates a sine wave for playback. The actual audio played is taken from the loopback and saved with the name STREAM_HOSTxxx.wav. ...

[wdmaudiodev] Re: How to enable Swap APO in SYSVAD sample driver without enhancement tab in windows 11?

$
0
0
I've worked with sysvad in the past. I needed to build a POC that capture system audio buffers. Thank God the project was dropped. Be ready to lose some good sleeping nights. Only MS engineers and some few engineers (one for instance) know the intricacies of that, forget the first option, the second option depends on the engineer's mood. Maybe your company should contract him, will be cheaper for sure. ...





Latest Images