Forums

    6 posts

  • avatar
    8 sounds
    10 posts
    Does Freesound support 32 bit?


    What's the deal with 32 bit support? I am asking the question because the 32 bit sounds I have uploaded seem to be converted to 24 bit. I am wondering if it's actually downsampled or if it's just a display bug.

  • avatar
    746 sounds
    316 posts


    Hi,

    We should not be downsampling at all, buy maybe there is an issue with 32-bit FLAC files. I can see that all 32-bit files we have are WAV or AIFF (at least this is what your system guesses). Can you double check that your file is indeed 32 bit after downloading and share the link of one of those files that should indeed be 32 bit but are displayed as being 24?

    thanks!

    frederic
    the freesound team
  • avatar
    8 sounds
    10 posts


    frederic.font wrote:
    Hi,

    We should not be downsampling at all, buy maybe there is an issue with 32-bit FLAC files. I can see that all 32-bit files we have are WAV or AIFF (at least this is what your system guesses). Can you double check that your file is indeed 32 bit after downloading and share the link of one of those files that should indeed be 32 bit but are displayed as being 24?

    thanks!

    Yes, it is a thing with FLAC

    I have verified that the original file I uploaded is 32 bit

    I have confirmed that the downloaded file is also 32 bit and same size, so it was not changed by Freesound

    This means there is a bug with how FLAC bits are displayed in the UI. Freesound says it's 24 bit, but it's actually 32 bit

    This is the sound:

    https://freesound.org/people/saorenjoyer/sounds/688065/

    Cheers

  • avatar
    746 sounds
    316 posts


    Thanks!
    I'll open an issue and eventually fix that smile

    frederic
    the freesound team
  • avatar
    255 sounds
    630 posts


    frederic.font wrote:
    Hi,

    We should not be downsampling at all, buy maybe there is an issue with 32-bit FLAC files. I can see that all 32-bit files we have are WAV or AIFF (at least this is what your system guesses). Can you double check that your file is indeed 32 bit after downloading and share the link of one of those files that should indeed be 32 bit but are displayed as being 24?

    thanks!

    Is it possible that the file data are obtained by querying flac/libflac?

    Debian stable still has libflac8 (1.3.3-2+deb11u1) but full 32-bit handling appears in 1.4.0 as mentioned here: https://xiph.org/flac/2022/09/09/flac-1-4-0-released.html

    For instance, running flac -t on this test file here
    https://github.com/ietf-wg-cellar/flac-test-files/blob/main/uncommon/05%20-%2032bps%20audio.flac

    1.3.3 reports

    flac 1.3.3
    Copyright (C) 2000-2009 Josh Coalson, 2011-2016 Xiph.Org Foundation
    flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    welcome to redistribute it under certain conditions. Type `flac' for details.

    05 - 32bps audio.flac: ERROR: bits per sample is 32, must be 4-24

    while 1.4.X reports

    flac 1.4.2
    Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
    flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    welcome to redistribute it under certain conditions. Type `flac' for details.

    05 - 32bps audio.flac: ok

  • avatar
    746 sounds
    316 posts


    Hi copyc4t, I have to double check but that might be related. Thanks for sharing!

    frederic
    the freesound team

    6 posts