Forum
    • Categories
    • Register
    • Login

    Is the Samplemap Broadcast Receiver Supposed to Fire Twice When It's Defined?

    Scheduled Pinned Locked Moved Solved Scripting
    3 Posts 2 Posters 184 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.
    • C
      clevername27
      last edited by clevername27

      For me, it actually executes twice. Anyone else? Thanks.

      EDIT: I typed the wrong question. But I'm halfway there thanks to @d-healey.

      EDIT of EDIT: The answer is, "Sort of." I was calling "clearSampleMap();" which also triggered the broadcaster.

      1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey
        last edited by

        If you're using addListener, then yes - https://docs.hise.dev/scripting/scripting-api/broadcaster/index.html#addlistener

        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 @David Healey
          last edited by

          @d-healey Thank you. That explains one of them. 👍 I'll check if I'm adding the receiver twice.

          1 Reply Last reply Reply Quote 0
          • C clevername27 has marked this topic as solved on
          • First post
            Last post

          33

          Online

          2.1k

          Users

          13.0k

          Topics

          113.2k

          Posts