Forum

    • Register
    • Login
    • Search
    • Categories

    No sound when plugin is hidden....

    Bug Reports
    4
    10
    104
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lindon
      Lindon last edited by

      OK, so I think I have a pretty serious problem - unless I've made some silly mistake(always possible..).

      I have a complied plugin that loads and works fine in a number of DAWS (FL Studio, Studio One, Reaper), it has a panel based timer that generates notes...

      whilst the plugin interface is displayed all is good - but as soon as I hide the UI it stops working ... any one else getting this?

      HISE Development for hire.
      www.channelrobot.com

      d.healey ustk 2 Replies Last reply Reply Quote 0
      • d.healey
        d.healey @Lindon last edited by

        @Lindon Panel timers run in the UI thread. Can you use the Synth timer instead?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 2
        • ustk
          ustk @Lindon last edited by

          @Lindon I think it's normal behaviour that panel-based timers are stopped when hidden. If you generate audio stuff a timer I think you should use a timer object instead.

          I cannot help pressing F5 in the forum...
          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

          Lindon 1 Reply Last reply Reply Quote 0
          • Lindon
            Lindon @ustk last edited by

            @ustk @d-healey -- OK I will try that...

            HISE Development for hire.
            www.channelrobot.com

            Lindon 1 Reply Last reply Reply Quote 0
            • Lindon
              Lindon @Lindon last edited by

              Yeah that fixed it -- a bit disappointed that I cant use the panel timer -- I sort of like its very slightly out-of-time timer -- but Im sure i will get over it...

              HISE Development for hire.
              www.channelrobot.com

              d.healey 1 Reply Last reply Reply Quote 1
              • d.healey
                d.healey @Lindon last edited by

                @Lindon Did you go with the timer object or the synth timer?

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                Lindon 1 Reply Last reply Reply Quote 0
                • Lindon
                  Lindon @d.healey last edited by

                  @d-healey -

                  myTimer = Engine.createTimerObject();
                  

                  HISE Development for hire.
                  www.channelrobot.com

                  1 Reply Last reply Reply Quote 1
                  • Christoph Hart
                    Christoph Hart last edited by

                    I sort of like its very slightly out-of-time timer

                    There you go:

                    function onTimer()
                    {
                        Synth.startTimer(average + Math.random() * funkyness);
                    }
                    
                    Lindon 1 Reply Last reply Reply Quote 2
                    • Lindon
                      Lindon @Christoph Hart last edited by

                      @Christoph-Hart - yes but then it plays strictly at this new defined time, so its a different time each time you start - but the panel based timer seems to drift a bit within itself, sure I could stop and start the timer within the call back - maybe I should just look at that...

                      HISE Development for hire.
                      www.channelrobot.com

                      1 Reply Last reply Reply Quote 0
                      • Christoph Hart
                        Christoph Hart last edited by

                        @Lindon said in No sound when plugin is hidden....:

                        sure I could stop and start the timer within the call back

                        Yes, that's the idea, it's perfectly safe to restart the timer in its callback.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        3
                        Online

                        977
                        Users

                        6.6k
                        Topics

                        60.6k
                        Posts