Forum

    • Register
    • Login
    • Search
    • Categories

    Exporting/Installing Samples for AudioLoopPlayer

    General Questions
    audiolooplayer sample export sample install
    4
    15
    63
    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.
    • Lindon
      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.healey
        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
        • trillbilly
          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.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            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

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

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

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

                https://docs.hise.audio/working-with-hise/settings/project.html#embed-audio-files

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

                trillbilly 1 Reply Last reply Reply Quote 0
                • trillbilly
                  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.healey 1 Reply Last reply Reply Quote 0
                  • d.healey
                    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_SF
                      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 / Monterey & Xcode 13.2.1

                      Lindon 1 Reply Last reply Reply Quote 0
                      • Lindon
                        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

                        4
                        Online

                        851
                        Users

                        5.7k
                        Topics

                        52.9k
                        Posts