microsoft / microsoft/Windows-classic-samples

ApplicationLoopback sample: suggested usage of GetMixFormat not working (only on Windows 10?)

Open
#343 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

As #196 brought up, the ApplicationLoopback sample (./cpp/LoopbackCapture.cpp:95) tells, that:

// The app can also call m_AudioClient->GetMixFormat instead to get the capture format.

But that doesn't work and I get an E_NOTIMPL (HResult 0x80004001).
That happens for m_AudioClient->IsFormatSupported() too.

The README mentions:

Note that this sample requires Windows 10 build 20348 or later.

Is GetMixFormat() (and IsFormatSupported()) only supported on Windows build 20348 (which is, as far as I found out, Windows Server 2022 21H2) and later, and not on Windows 10?
Just for clarification, the sample itself works on my Windows 10 22H2 (build 19045) system.

Thanks for any replies.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ./cpp/LoopbackCapture.cpp:95 and compare the GetMixFormat and IsFormatSupported guidance with the README's Windows 10 build 20348 requirement. Reproduce the E_NOTIMPL result on Windows 10 build 19045 and determine whether the sample comment or README needs clarification; done means the supported behavior and version requirements are documented accurately.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.