Export pooled Files to Binary



  • What exactly does the menu "Export pooled Files to Binary" do?

    I used the Audio LoopPlayer - no sampler!!!

    My sample pool is currently (not cleaned) 88.26 MB.
    My Pictures folder is currently (not cleaned) 16,92 MB

    The Poolresources folder is
    AudioResources.dat 22.4MB
    ImageResources.dat 3.8 MB

    The compiled VST-PlugIn is 146.8 MB in size.
    How does it all fit together????



  • If You Compile Anything Without a Single Image / Audio,
    The Component Files Will be around 20/25 M.b.
    IPP also Adds size to Component.
    And I already Mentioned Yiu In Other thread To Be aware of this.

    Btw, I Always Convert my audio files To .flac
    It is compressed and Compared to Wave files, It's Like 1/3.



  • Another Example:

    Let say you have 80M.b Of Images In Image Folder.

    But you only used 1 or 2 OF Them.
    Hise Will Automatically Include Those 2, And skip On Rest of Images Files.

    But with Audio Files,
    It Includes Everything Once Use engine.loadaudiofiles....



  • @Natan

    But with Audio Files,
    It Includes Everything Once Use engine.loadaudiofiles....

    And it doesn't matter how you compress your audio files, in HISE they are always 32 bits in size.

    Original sample 53kb
    Samples in AudioLoadWindow 106kb

    Do you embed your samples - or not?



  • @MikeB said in Export pooled Files to Binary:

    32 bits in size.

    Yeah, I Embed Impulses, Audio Files, And All Goes Around 23 M.b Plus Hise
    Not Sure About The 32 Bit, But I Guess That's For BMP Images, Not For Audio Files.



  • @Natan

    Not Sure About The 32 Bit, But I Guess That's For BMP Images, Not For Audio Files.

    see here:

    https://forum.hise.audio/topic/4589/embedded-audio-files?_=1632373336622



  • @Natan said in Export pooled Files to Binary:

    If You Compile Anything Without a Single Image / Audio,
    The Component Files Will be around 20/25 M.b.
    IPP also Adds size to Component.
    And I already Mentioned Yiu In Other thread To Be aware of this.

    Btw, I Always Convert my audio files To .flac
    It is compressed and Compared to Wave files, It's Like 1/3.

    So are you saying if I convert all my .wav based IRs to flac files I can have a whole bunch more without blowing the compiler heap space?



  • @Lindon Yeah, That Works Here
    Recetly i Included 20 Ir + 20 Loops And Still Under 50 M.b



  • @Natan said in Export pooled Files to Binary:

    @Lindon Yeah, That Works Here
    Recetly i Included 20 Ir + 20 Loops And Still Under 50 M.b

    hmm, yeah - but did you test this? The 50MB limit is a bit more fluid I find, so it might be uncompressing them before adding them into the image - in the way it does with jpg and png images...



  • @Natan @Lindon
    So according to my tests and Christoph's answer, it doesn't matter how you compress. Everything is processed in HISE with 32Bit.

    Only the length and the number of samples 44.1 or 48 or 22.05khz changes the size of the space reserved by HISE per sample.

    If you read in a sample 2 bars with 8 or 16 or 24 or 32 bits you will notice that in HISE they are all the same size.

    If you change the sample rate from 48 to 44.1 or 22.05, the size is halved.

    If you have other experiences - please tell me 🙂

    Samplefile
    Bildschirmfoto 2021-09-23 um 12.25.01.png

    HISE AudioPool
    Bildschirmfoto 2021-09-23 um 12.28.01.png



  • @MikeB - yeah that was my understanding too...



  • The same is true for images - there are NO compressed images in HISE - all images are processed in a 32bit colour space.
    So no matter if you import a jpg or an uncompressed png both are the same size in HISE and four times bigger than your original.



  • @MikeB Okey
    Let say You Have A .Wav File " 3 M.b X 2 = 6 M.b "
    And the Same File In .Flac " 1.5 M.b X 2 = 3 M.b "

    What You Think?



  • @Natan said in Export pooled Files to Binary:

    @MikeB Okey
    Let say You Have A .Wav File " 3 M.b X 2 = 6 M.b "
    And the Same File In .Flac " 1.5 M.b X 2 = 3 M.b "

    What You Think?

    not how it works ....

    it does not matter what size the file is on disk - HISE loads the audio and expands it to 32-bit and keeps that internally.

    Same for images - you can have a jpg file on disk, but HISE will expand it out to 16-bit uncompressed and save that.



  • @Natan We are already talking about AudioFiles that are used in the AudioPool and in the AudioLoopPlayer.

    if so:

    You can also save it as mp3 with 200kb - as soon as you load it into the AudioPool it has 6MB.

    I guess your .FLac conversion reduces the sample rate of the file - as you can see from my experiment, when you reduce the sample rate you reduce the size in HISE.

    What is the sample rate of your original .wav and how much is the .flac file?


Log in to reply
 

16
Online

1.6k
Users

4.6k
Topics

42.7k
Posts