Incorrect clamp for stereo pan on the Audio Track

Forums 💬 Slate Sequencer ⚙️ Support Incorrect clamp for stereo pan on the Audio Track

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20797
    b4th
    Participant

      In PlayAudio.cs,

      source.panStereo = Mathf.Clamp01(stereoPan + track.stereoPan);

      should be

      source.panStereo = Mathf.Clamp(stereoPan + track.stereoPan, -1f, 1f);

      😉

      #20798
      Gavalakis
      Keymaster

        Oh.. Correct 🙂
        Thanks!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.