GithubHelp home page GithubHelp logo

Comments (4)

dheijl avatar dheijl commented on August 30, 2024

Hi,

A possible cause is that the application playing the audio has opened the WasApi device in exclusive mode. Foobar2000 is an example of such an application.
There are ways around this using the Windows audio mixer. For instance with Foobar2000 you choose the default audio output "Primary Sound Driver" and in the sound mixer you direct the Foobar2000 output to VB audio.
(But of course with Foobar2000 you don't need swyh-rs as at all it suports upnp/dlna directly.)

What application are you using to play audio? Windows version?

One source mentions Kaspersky Antivirus as the source of the problem: https://stackoverflow.com/questions/46281593/iaudioclientinitialize-returns-e-invalidarg-0x80070057-2147024809.

Others point to the sound card as the source of this specific problem, or possibly the sound source format. Only 2 channel stereo is supported by swyh-rs.

The IAudioClient::Initialize page say this about E_INVALIDARG

Parameter pFormat points to an invalid format description; 
or the AUDCLNT_STREAMFLAGS_LOOPBACK flag is set but ShareMode is not equal to AUDCLNT_SHAREMODE_SHARED; 
or the AUDCLNT_STREAMFLAGS_CROSSPROCESS flag is set but ShareMode is equal to AUDCLNT_SHAREMODE_EXCLUSIVE.

A prior call to SetClientProperties was made with an invalid category for audio/render streams.

from swyh-rs.

JWolvers avatar JWolvers commented on August 30, 2024

Hi,

I am using Firefox on Windows 10, but the issue is most likely caused by Kaspersky.
I will contact our IT provider about creating an exception for swyh-rs and see if that solves the problem and report back.

Thanks for your help!

from swyh-rs.

dheijl avatar dheijl commented on August 30, 2024

I have no problem with Firefox and VB-Audio Hifi Cable, so Kaspersky might indeed be the culprit:

Knipsel

from swyh-rs.

JWolvers avatar JWolvers commented on August 30, 2024

It was indeed caused by kaspersky.

from swyh-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.