Code Monkey home page Code Monkey logo

Comments (4)

EQAditu avatar EQAditu commented on June 9, 2024

The real problem is that the WMP API is the thing that is changing the mixer volume. When I started using it, I thought it had an internal mixer and did not realize it modified the Windows mixer for the host program. This should have the side effect of changing the volume of one sound mid-way through if the types change. Obviously this isn't great.

I'm suspicious that this reported issue is also related to how WMP alters the Windows Mixer and does it haphazardly. Other sound APIs do not change the host process mixer volume.

I imagine using TTS in SAPI direct mode should not have this bug occur because WMP will no longer be called for TTS at all.

from advancedcombattracker.

xpdota avatar xpdota commented on June 9, 2024

I think this bug wouldn't happen in SAPI mode regardless because of this:

        if (pszSound.EndsWith("sapi.wav"))
          this.PlaySoundMethod(pszSound, this.opSound.tbarTtsVol.Value);
        else
          this.PlaySoundMethod(pszSound, this.opSound.tbarWavVol.Value);

If this works how I think it does, TTS is supposed to set the volume to the selected TTS volume setting, but this code path is only used when playing TTS via SAPI?

from advancedcombattracker.

EQAditu avatar EQAditu commented on June 9, 2024

Direct SAPI does not use PlaySound() at all... so WAV files would go to the else.

from advancedcombattracker.

EQAditu avatar EQAditu commented on June 9, 2024

This and other problems would be fixed if ACT no longer used WMP as the default sound engine. ACT does not change the volume mixer, the WMP API does.

WMP API was attractive because it was preinstalled on every version of Windows. There may be newer options that are similarly ubiquitous, but I would have to do a bit of research.

from advancedcombattracker.

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.