Coder Social home page Coder Social logo

Comments (4)

achandak avatar achandak commented on August 15, 2024

@pragmascript - We looked into this issue and think there is some issue on Unity's side. Basically, custom effects created with OnAudioReadFilter and called with PlayOneShot has different behavior depending on whether Play On Awake is checked or not on an Audio Source.

Can you try the following and see if the issue is resolved?

  • Make sure that Play On Awake is not checked on the Audio Source you are calling PlayOneShot on.
  • Trigger PlayOneShot and check if Steam Audio effect are applied correctly.

from steam-audio.

pragmascript avatar pragmascript commented on August 15, 2024

@achandak I can confirm that when PlayOnAwake is unchecked it works as expected.
Thanks for the quick response

from steam-audio.

achandak avatar achandak commented on August 15, 2024

@pragmascript - Thanks for follow up. We will continue to look into what is happening when PlayOnAwake is checked. We have reported a bug with Unity for the time being.

from steam-audio.

achandak avatar achandak commented on August 15, 2024

@pragmascript - We received following feedback from Unity on the issue. According to them this behavior is by design. I am copy pasting their response below and closing this particular issue.

It is by design because when there is an AudioSource that has no clip assigned but does have a MonoBehaviour implementing OnAudioFilterRead, it will instantiate the OnAudioFilterRead as a source when the sound is started either via the "Play On Awake" flag or a regular Play() call. When “Play On Awake” is off and Play() is not called, the PlayOneShot call will instantiate the OnAudioFilterRead as an effect that filters the signal mix of the one-shot sources.

from steam-audio.

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.