[wdmaudiodev] Re: PortClass audio driver: device initiated change of audio device default format properties

  • From: "noise@xxxxxxxx" <noise@xxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 19 Oct 2018 18:38:44 +0200

If the portclass only announce the current device sample rate as the only 
supported format - then the OS can't tell the portclass driver anymore to 
choose any other sample rate.

Viele Grüße/Cheers,
Hagen.

On 19.10.2018, at 18:32, Matthew van Eerde (Redacted sender 
"Matthew.van.Eerde" for DMARC) <dmarc-noreply@xxxxxxxxxxxxx> wrote:

      • but then the portclass can't control the devices sample rate anymore

I don’t follow. What do you mean?

From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of noise@xxxxxxxx <noise@xxxxxxxx>
Sent: Thursday, October 18, 2018 10:22:18 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: PortClass audio driver: device initiated change of 
audio device default format properties

Mhhh, thanks again, I thought about that, but then the portclass can't 
control the devices sample rate anymore...
The device has a sample rate selector, controllable from the device's own UI 
and from the host (here portclass, but further also ASIO).

What I think it should do, if possible, is only switching the default format. 
If thats not possible then the above approach is OK and we let control the 
sample rate only from the device and the ASIO control panel.
(portclass anyway is only an addition for the user to use the audio device as 
a youtube player. The device itself is a multichannel pro audio interface 
which primarily is used via ASIO.)

Viele Grüße/Cheers,
Hagen.

On 18.10.2018, at 22:16, Matthew van Eerde (Redacted sender 
"Matthew.van.Eerde" for DMARC) <dmarc-noreply@xxxxxxxxxxxxx> wrote:

Yes.

And if the external sound device has a particular sample rate selected – 
say, 44.1 – it is your audio driver’s job to tell Windows that it ONLY 
supports 44.1.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of noise@xxxxxxxx <noise@xxxxxxxx>
Sent: Thursday, October 18, 2018 1:14:24 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: PortClass audio driver: device initiated change 
of audio device default format properties

Thanks Matthew, I am having a look at this!

But wouldn't this only retrieve the entire set of formats my device supports?

Viele Grüße/Cheers,
Hagen.

On 18.10.2018, at 22:00, Matthew van Eerde (Redacted sender 
"Matthew.van.Eerde" for DMARC) <dmarc-noreply@xxxxxxxxxxxxx> wrote:

If your format support changes, raise a KSEVENT_PINCAPS_FORMATCHANGE event. 
Windows will invalidate all currently running streams and requery format 
support.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> 
on behalf of noise@xxxxxxxx <noise@xxxxxxxx>
Sent: Thursday, October 18, 2018 12:01:29 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] PortClass audio driver: device initiated change of 
audio device default format properties

Hi,

I have an external sound device which - beneath others - can control the 
sample rate.
To support Windows audio we are using a portclass driver.
Is it possible to promote a sample rate change from the device switching 
our portclass drivers current "default" format? (at least when the device 
is streaming...?!)

Thanks, for any suggestion where to look!

Viele Grüße/Cheers,
Hagen.

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C3b1d43896bbc4ba3a69c08d63582ea52%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636755233770990080&amp;sdata=B5KG0IpigkjyKXdDucUaqfAsrH%2FeDMr2wDNxbDwA8c8%3D&amp;reserved=0


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C3b1d43896bbc4ba3a69c08d63582ea52%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636755233770990080&amp;sdata=B5KG0IpigkjyKXdDucUaqfAsrH%2FeDMr2wDNxbDwA8c8%3D&amp;reserved=0




Viele Grüße/Cheers,
Hagen.
__________________
dynamic acoustics e.U.
Weyringergasse 37/3/11a
1040 Vienna / Austria
+43 680 1268 751

FN: 326751t

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C3b1d43896bbc4ba3a69c08d63582ea52%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636755233770990080&amp;sdata=B5KG0IpigkjyKXdDucUaqfAsrH%2FeDMr2wDNxbDwA8c8%3D&amp;reserved=0




Viele Grüße/Cheers,
Hagen.
__________________
dynamic acoustics e.U.
Weyringergasse 37/3/11a
1040 Vienna / Austria
+43 680 1268 751

FN: 326751t

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: