HISE Logo Forum
    • Categories
    • Register
    • Login

    Exporting/Installing Samples for AudioLoopPlayer

    Scheduled Pinned Locked Moved General Questions
    audiolooplayersample exportsample install
    15 Posts 4 Posters 613 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.
    • trillbillyT
      trillbilly @Matt_SF
      last edited by trillbilly

      @Matt_SF and they just use the "Choose Sample Folder" option when prompted like the Sampler? Or do you mean install them to something like AppData/AudioFiles?

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

        @trillbilly
        I think your plugin will need to "know" where the user has installed the files...

        So your installer would need to ask the user where to put the audio files, and then the plugin would need to ask the user where they have been placed...

        You could write an installer that:

        1. asks the user where they want to install your many Gbytes of files...
        2. installs them there
        3. Writes a JSON file with this location into the AppData folder

        At this point when it wakes up your plugin could read the JSON file so it knows where these loops are...

        Well thats my plan for this sort of thing anyway... so far I have the custom installer built....

        HISE Development for hire.
        www.channelrobot.com

        Matt_SFM trillbillyT 2 Replies Last reply Reply Quote 0
        • Matt_SFM
          Matt_SF @Lindon
          last edited by

          @Lindon @trillbilly yes I've done that for one of my products and it works well. The installer can indeed write a file which includes the Samples location and the plugin know where to find them.

          Develop branch
          Win10 & VS17 / Ventura & Xcode 14. 3

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

            Okay the installer now adds a file holding the location of the user defined folder (called no surprises: LinkUser) so last bit done - I will report back when I give it a go...

            @Matt_SF so I assume you are using something like:

            myUserLocation = UserLocation;  //which you read from the disk via (say) JSON
            
            theLoopPlayer.setFile(myUserLocation  + "WaveName" + ".wav");
            

            @trillbilly you might NOT want to put your audio files in AppData/AudioFiles

            • it'll be on the users "C Drive" and on windows at least might not have the room for a lot of stuff.

            HISE Development for hire.
            www.channelrobot.com

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

              I haven't read through the whole thread so apologies if I'm repeating things that have already been covered.

              If the audio files are part of your project and live in the audio files folder, then you can ship them as a .dat file. You'll find that file in the Pooled Resources folder after you compile. That file should be placed in the app data folder.

              I don't know if it's possible to redirect the .dat file using a LinkOS file but if that isn't possible then we should nag Christoph to add it :)

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

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

                @Lindon @Matt_SF Is there a default file name/location for the JSON file for HISE to detect?

                @d-healey This sounds like an easy solution, does it also have a default location it can be placed in the AppData folder?

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

                  @trillbilly

                  This sounds like an easy solution, does it also have a default location it can be placed in the AppData folder?

                  Just straight in the project's app data folder as far as I'm aware. I wouldn't do this if you have more than a couple of hundred mb of audio though.

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

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

                    @d-healey Yes, its minimal samples. I assume you mean the "AudioResources" dat file?

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

                      @trillbilly That's the one.

                      By the way it's mentioned in the docs:
                      https://docs.hise.audio/working-with-hise/project-management/projects-folders/audio-files.html

                      Link Preview Image
                      HISE | HISE | Project Settings

                      The properties for your project

                      favicon

                      (docs.hise.audio)

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

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

                        @d-healey Theres always that staring me right in the face.

                        So it sounds as though you can use the Embed Audio Files in preferences and it should install them with the plugin, yes? This should work for my use.

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

                          @trillbilly Embed audio files will make the files part of the binary. This is good for anything less than 50mb.

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

                          1 Reply Last reply Reply Quote 0
                          • Matt_SFM
                            Matt_SF
                            last edited by

                            I for myself just mimicked the sampler's system : using the FileSystem API, I made the plugin look for a 'LinkUser' file which only contains the samples folder path. From there I get all sample files and put them on an array which, again, is mimicking the SamplePool function.

                            Develop branch
                            Win10 & VS17 / Ventura & Xcode 14. 3

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

                              @Matt_SF said in Exporting/Installing Samples for AudioLoopPlayer:

                              I for myself just mimicked the sampler's system : using the FileSystem API, I made the plugin look for a 'LinkUser' file which only contains the samples folder path. From there I get all sample files and put them on an array which, again, is mimicking the SamplePool function.

                              yep my way too...

                              HISE Development for hire.
                              www.channelrobot.com

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

                              25

                              Online

                              1.8k

                              Users

                              12.0k

                              Topics

                              104.2k

                              Posts