[wdmaudiodev] Re: Windows Vista APO channel conversion question

  • From: "Michael R. Preston" <mike@xxxxxxxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 03 Aug 2006 21:55:02 -0700

Frank/Jeff,
Thanks for the information. This is exactly what I'm doing - returning S_FALSE and making the suggested input format 2-channel 48 kHz float. I'm currently using Vista Beta 2 for my testing. Vista July 2006 (build 5472) seemed more unstable than Beta 2 (5384). DbgView wouldn't even run on build 5472 because of some security issue with trying to install a file in the /Windows/System32/Drivers directory. However, it sounds like this was fixed more recently than even that build, so I guess we'll have to wait for the next release of Vista to verify if the problem is fixed. Does that sound right?


Thanks,
Mike

Frank Yerrace wrote:
My colleague Jeff Hoekman asked me to send this response on his behalf.
Here is his response, verbatim:

Hi Mike,

We recently fixed this behavior, however, you should be able to get
things working by returning S_FALSE and returning a suggested format of
32-bit float, 48k, and channel-count unchanged.

As of Winmain 5490.0.060731-1930, the SysFX APOs (GFX and LFX) will not
be passed IO format pairs which require SRC or int<->float conversion,
so it will be much easier for you to return S_OK or S_FALSE and specify
the channelcount you desire.

Let us know if you have further questions.

-Jeff
This posting is provided "as is" with no warranties, and confers no
rights.




-----Original Message----- From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Michael R. Preston Sent: Tuesday, August 01, 2006 7:27 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Windows Vista APO channel conversion question

Hi, all. I'm developing an APO for Windows Vista that will do some channel conversion in the LFX. For example, if you're playing a stereo MP3 or WMA file in Windows Media Player, and the system is in 8-channel speaker mode, I want the LFX to be in control of how the channel conversion happens. However, using Vista Beta 2, I'm having trouble setting the input format the way I want. I'm playing a 44.1 kHz MP3 or WMA file in Windows Media Player, and I'm on a system where the audio hardware is locked to 48 kHz. In IsInputFormatSupported(), I can see how Windows is trying to open the LFX. Since the system is in 8-channel

mode, the output format is always 8 channels at 48 kHz to match the hardware. However, looking at the input format, Windows either wants me

to sample-rate-convert the audio from 44.1 kHz to 48 kHz while allowing me to do the channel conversion, or Windows does the sample-rate-conversion and channel conversion for me before getting to my LFX. Why isn't there a 3rd option - let Windows do the sample-rate-conversion, and let my LFX do the channel conversion? Anyone have any info on this?

Thanks,
Mike Preston

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Mike Preston | Home/Office: (360)756-1655 | | E-mail: mike@xxxxxxxxxxxxxxxxxxx | Cell: (360)303-9331 | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | The man who follows the crowd will usually get no | | further than the crowd. The man who walks alone is | | likely to find himself in places no one has ever been. | | -- Alan Ashley-Pitt | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ******************

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: