Export pooled Files to Binary



  • @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
 

18
Online

1.6k
Users

4.6k
Topics

42.7k
Posts