Forum
    • Categories
    • Register
    • Login

    [bug] Full expansion audio files not being pooled.

    Scheduled Pinned Locked Moved Solved Bug Reports
    audio filesexpansionimpulseloadingembed
    21 Posts 3 Posters 2.9k 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.
    • David HealeyD
      David Healey
      last edited by David Healey

      That might be because there isn't a Samples folder in appData. What is the value of dir?

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

      Dan KorneffD 1 Reply Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @David Healey
        last edited by

        @d-healey Samples (5)

        Dan Korneff - Producer / Mixer / Audio Nerd

        David HealeyD 1 Reply Last reply Reply Quote 1
        • David HealeyD
          David Healey @Dan Korneff
          last edited by

          @Dan-Korneff Adding a Samples folder to appData should solve that.

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

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

            I'm guessing the problem can be traced from ScriptingApi::Engine::loadAudioFilesIntoPool()

            It's like it looks in the binary (Rhapsody) but not in the expansion hxi.

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

            Christoph HartC 1 Reply Last reply Reply Quote 1
            • Christoph HartC
              Christoph Hart @David Healey
              last edited by

              @d-healey Spot on!

              https://github.com/christophhart/HISE/commit/01c1780c17a51e5608b2837c0ceb2e315ab70a55

              David HealeyD 1 Reply Last reply Reply Quote 1
              • David HealeyD
                David Healey @Christoph Hart
                last edited by

                @Christoph-Hart Thank you!

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

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

                  @Christoph-Hart I think I've hit another similar problem. This time I'm using the loop player. I save a preset with a file (from the expansion's samples folder) loaded but when I open the preset in the player the file isn't there.

                  I've been poking around in ExternalFilePool.cpp and think I'm in the right location but do you have any pointers?

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

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

                    @Christoph-Hart I've narrowed it right down now.

                    The problem is here - https://github.com/christophhart/HISE/blob/develop/hi_core/hi_core/ExternalFilePool.cpp#L538

                    There isn't any handling for the sampleFolderWildcard.

                    So as a test I added this:

                    		else if (input.startsWith(sampleFolderWildcard))
                    		{
                    			if (auto e = mc->getExpansionHandler().getCurrentExpansion())
                    			{
                    				input = input.replace(sampleFolderWildcard, "/media/dave/Projects/projectName/Samples/");
                    			}
                    		}
                    

                    And it works. However when I try to use the expansion wildcard instead of the absolute path it still doesn't resolve. Can you suggest the last bit of the solution?

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

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

                      Aha!

                      input = input.replace(sampleFolderWildcard, e->getSubDirectory(FileHandlerBase::Samples).getFullPathName() + "/");

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

                      Dan KorneffD 1 Reply Last reply Reply Quote 2
                      • Dan KorneffD
                        Dan Korneff @David Healey
                        last edited by

                        @d-healey giphy.gif

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 1
                        • David HealeyD David Healey marked this topic as a question on
                        • David HealeyD David Healey has marked this topic as solved on
                        • First post
                          Last post

                        23

                        Online

                        2.1k

                        Users

                        13.0k

                        Topics

                        112.9k

                        Posts