Search Unity

Can't load audio from a package

Discussion in 'Package Manager' started by Yacuzo, Aug 6, 2018.

  1. Yacuzo

    Yacuzo

    Joined:
    Sep 22, 2016
    Posts:
    27
    Hi,

    I have some UI I share across projects, and along with it some audio (click, hover etc).

    When trying to convert this to a local package (file path) Unity fails to import them. The audio files (mp3) import fine when located directly in a project, but fail when part of a package. I'm on 2018.2.2f1.

    I get this error on import "Errors during import of AudioClip Packages/com.holocare.ui/Audio/button_press.mp3:
    FSBTool ERROR: Internal error from FMOD sub-system."

    This should be supported, yes?
     
    Last edited: Aug 7, 2018
    dan_ginovker likes this.
  2. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    756
    Hi @Yacuzo,

    It should. I asked the audio team for validation. Stay tuned.

    Regards,

    Pascal
     
  3. janusl

    janusl

    Unity Technologies

    Joined:
    Aug 8, 2018
    Posts:
    24
    Hello @Yacuzo

    Indeed audio files will fail to import inside packages right now. Would you mind creating a ticket through the bug reporter for this issue?

    Thanks

    Janus
     
  4. Yacuzo

    Yacuzo

    Joined:
    Sep 22, 2016
    Posts:
    27
    Case 1069085 :)
     
    janusl likes this.
  5. Kylotan

    Kylotan

    Joined:
    Feb 17, 2011
    Posts:
    212
    Was there any update on this?
     
  6. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    756
    @Kylotan The bug is marked as fixed in the database. This should be available starting from 2018.3.12f1.
     
    Kylotan likes this.
  7. Mitch_Heinsenberg

    Mitch_Heinsenberg

    Joined:
    Sep 29, 2020
    Posts:
    15
    I am seeing errors when trying to import wav files into a project



    Errors during import of AudioClip Assets/Audio/GJ_2.2_Menu_Theme.wav:
    FSBTool ERROR: The format of the source file is invalid, see output for details.
    FSBTool ERROR: Internal error from FMOD sub-system.

    UnityEditorInternal.InternalEditorUtility:projectWindowDrag(HierarchyProperty, Boolean)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
    dan_ginovker likes this.
  8. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    What version of the editor are you using?
     
  9. Mitch_Heinsenberg

    Mitch_Heinsenberg

    Joined:
    Sep 29, 2020
    Posts:
    15
    There was an issue with my audio files. Sorry about that. This is not a Unity bug.
     
  10. unity_eSOAtsxXFeFfPA

    unity_eSOAtsxXFeFfPA

    Joined:
    Dec 30, 2021
    Posts:
    1
    Im having trouble importing any audio files into unity

    Errors during import of AudioClip Assets/_Audio/Juice WRLD - Go Hard (Official Audio).mp3:
    FSBTool ERROR: The format of the source file is invalid, see output for details.
    FSBTool ERROR: Internal error from FMOD sub-system.
    UnityEngine.GUIUtility:processEvent (int,intptr)

    Is there any way to fix this?
     
  11. vtihonyuk

    vtihonyuk

    Joined:
    Feb 28, 2022
    Posts:
    7
    @UnityMaru Hi, reproduced that issue on 2021.3.4f1. Exactly same. When importing package with audio files.
     
    dan_ginovker likes this.
  12. Dahaka444

    Dahaka444

    Joined:
    Jun 15, 2021
    Posts:
    13
    I have a similar error during a build for iOS, using Unity Editor in batchmode on linux 2021.3.7f1.

    The build works, but any mp3 or wav files are skipped from the build.

    Note: the same files work fine when building for iOS on Windows and Mac with same version, and also Android on linux works. So it seems to be specific to building iOS on linux on 2021.3.7f1

    ```
    Start importing Assets/Art/Audio/RoutinePlayerMusic1.mp3 using Guid(202c7cdd41f6e4ffa961b14745040d89) Importer(-1,00000000000000000000000000000000) Errors during import of AudioClip Assets/Art/Audio/RoutinePlayerMusic1.mp3:
    FSBTool ERROR: Could not find encoder library './libmp3lame.so', please copy it from the FMOD SDK to the application directory.
    FSBTool ERROR: Encoder initialization failed.
    FSBTool ERROR: Internal error from FMOD sub-system.
    -> (artifact id: 'edf73173bead306cf0ce29af2cd00b95') in 1.076998 seconds
    ```
     
    dan_ginovker likes this.
  13. dan_ginovker

    dan_ginovker

    Joined:
    Jun 13, 2021
    Posts:
    76
    Also having the issue when build target is set to iOS on a Linux Editor

    Code (csharp):
    1. FSBTool ERROR: Could not find encoder library './libmp3lame.so', please copy it from the FMOD SDK to the application directory.
    Switching build target to Android fixes it but building for iOS is kinda important