HISE Logo Forum
    • Categories
    • Register
    • Login

    No sound when plugin is hidden....

    Scheduled Pinned Locked Moved Bug Reports
    10 Posts 4 Posters 390 Views
    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.
    • LindonL
      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.healeyD ustkU 2 Replies Last reply Reply Quote 0
      • d.healeyD
        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 1
        • ustkU
          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.

          Can't help pressing F5 in the forum...

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

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

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              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.healeyD 1 Reply Last reply Reply Quote 1
              • d.healeyD
                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

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  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 HartC
                    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);
                    }
                    
                    LindonL 1 Reply Last reply Reply Quote 2
                    • LindonL
                      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 HartC
                        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

                        18

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.2k

                        Posts