[wdmaudiodev] AW: Re: Virtual Audio Passthrough Driver - data format conversion?

  • From: "Johannes Freyberger" <jfreyberger@xxxxxxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 3 Nov 2020 08:31:24 +0100

Hi,

 

I think we shouldn’t abuse this platform for pushing and advertising our own 
products as this platform is purely focused on windows audio driver 
development. And there are probably also a lot of other apps out there which do 
a similar job.

 

Best,

Johannes

 

Von: wdmaudiodev-bounce@xxxxxxxxxxxxx Im Auftrag von Vincent Burel (VB-Audio)
Gesendet: Dienstag, 3. November 2020 06:16
An: wdmaudiodev@xxxxxxxxxxxxx
Betreff: [wdmaudiodev] Re: Virtual Audio Passthrough Driver - data format 
conversion?

 

Hello,

 

This is basically what you can do with Voicemeeter, right now.

 

Developing a Virtual Audio Driver working as Virtual Audio Cable and possible 
Virtual Audio I/O might require several years of work & validation.

 

Some days only if using the Voicemeeter Audio API: 
https://forum.vb-audio.com/viewtopic.php?f=8 ;
<https://forum.vb-audio.com/viewtopic.php?f=8&t=346> &t=346

 

Regards

Vincent Burel

 

 

De : wdmaudiodev-bounce@xxxxxxxxxxxxx <mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
 [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] De la part de ;
wdmaudiodev@xxxxxxxxxxxxxx <mailto:wdmaudiodev@xxxxxxxxxxxxxx
Envoyé : lundi 19 octobre 2020 17:55
À : wdmaudiodev@xxxxxxxxxxxxx <mailto:wdmaudiodev@xxxxxxxxxxxxx
Objet : [wdmaudiodev] Virtual Audio Passthrough Driver - data format conversion?

 

Hi everyone,

Tim Roberts over at the osr.com forum has been very kind in answering my audio 
driver questions over the last few months. Recently, he referred me to this 
mailing list where "all the cool audio driver kids, including several very 
helpful members of the Microsoft audio team, hang out".

My goal is to play networked voice data (in our app) to a virtual render 
endpoint, and have it 'loop-back' to a virtual capture endpoint that 3rd-party 
chat apps like Skype, Zoom, etc. can consume.

My audio driver prototype is based on SYSVAD/WaveRT. Besides being newer and 
recommended in the docs, WaveRT handles more of the copying data to/from the 
DMA buffers. My hope was that I could write less code and have a more stable 
driver.

What's needed is just a straight-through audio pipe, so I tried using a single, 
common buffer for render & capture streams; keeping the respective 
PlayPositions in sync. For this to have a hope of working, both render and 
capture streams would have to be identical in terms of format (e.g. channels, 
frames/sec). Alas, when I tested, each stream had significant differences in 
their PCM format (channels, frame rate). I'm still testing to see if I can 
limit/coerce both endpoints to the same format: a single channel at some 
arbitrary 'good enough' frame rate, but this approach is starting to look 
uncomfortably fragile.

My second prototype is based upon MSVAD/WaveCyclic. With WaveCyclic, I 
implement the DMA buffer copying logic, so I can do whatever data conversion is 
required. I'm aware of a few other 'virtual audio driver' projects on Github 
with similar goals; all based upon WaveCyclic.

I wanted to see how they dealt with the data format conversion issue, but when 
I look at their CopyTo and CopyFrom implementations, I don't see them dealing 
with conversion at all. There doesn't appear to be any code (e.g. in 
DataRangeIntersection) that limits streams to a specific number of channels or 
frame-rate.

Can anyone shed light on this?

I'm sure my expectations must be off somehow, but it seems to me that some kind 
of conversion must be required when copying data between streams of 
sufficiently different format...

 

Other related posts: