HISE Logo Forum
    • Categories
    • Register
    • Login

    Do I not understand the setLoadingCallback?

    Scheduled Pinned Locked Moved General Questions
    45 Posts 5 Posters 4.1k 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.
    • d.healeyD
      d.healey @aaronventure
      last edited by

      @aaronventure Thanks!, It's interesting, because it works. But this doesn't

      Panel1.setLoadingCallback(function(isPreloading)
      {	
          if (isPreloading)
      	this.startTimer(50);
          else
              this.stopTimer();
      });
      

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

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

        It doesn't seem to work reliably in my compiled project, maybe something to do with it being an expansion...

        @Christoph-Hart Can you make this work reliably, either via a broadcaster or the preload callback?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

          @d-healey said in Do I not understand the setLoadingCallback?:

          @Christoph-Hart How do we use the broadcaster to show a loading bar? It seems to me that the events trigger after they have completed.

          Also SampleMapLoaded doesn't work, it needs to be SampleMapChanged.

          Bump

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

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

            @d-healey @aaronventure The new broadcaster works great - I'll post a code sample if anyone needs.

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

              @clevername27 For a loading bar?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

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

                @d-healey Good point. I'm wondering if the callback is good enough for the progress bar, and then use the broadcaster to finish it?

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

                  @Christoph-Hart Could it be the preloading callback isn't working correctly for me because I'm not loading my sample maps from my deferred UI script, instead I'm using a secondary MIDI processor for this?

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

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

                    I just found this in the doc on threads, is this why my loading bar isn't working reliably?

                    With the exception of the latter, all these multithreaded use cases are not synchronised by default (with the rationale of preferring data race conditions over deadlocks and priority inversions). The exception is the user preset load, which locks the scripting thread by default during the operation.

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

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

                      @d-healey Have you found any resolution on this?

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

                        Bump bump @Christoph-Hart What's the use case for SampleMapLoaded/changed?

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                        25

                        Online

                        2.0k

                        Users

                        12.8k

                        Topics

                        110.7k

                        Posts