Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Strange sound error on import?

Discussion in 'Audio & Video' started by ElMagnifico, Aug 12, 2020.

  1. ElMagnifico

    ElMagnifico

    Joined:
    Aug 27, 2018
    Posts:
    16
    First time running into this, when I imported a .ogg sound to Unity 2020. Strnage thing is, I imported tons of other .ogg sound into my other project, all made the same way.
    Google returns nothing of use.

    Unknown platform passed to AudioImporter.SetOverrideSampleSettings (WSA), please use one of 'Web', 'Standalone', 'iOS', 'Android', 'WebGL', 'PS4', 'XboxOne' or 'WSA'
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. harini

    harini

    Unity Technologies

    Joined:
    May 28, 2015
    Posts:
    30
    I am trying to reproduce this on my Mac with Unity 2020.1 and not able to. Can you provide me with a bit more info?
     
  3. ElMagnifico

    ElMagnifico

    Joined:
    Aug 27, 2018
    Posts:
    16
    nothing much.
    Unity 202. New project, just imported a .ogg sound and it popped out.

    The error seems to come and go for some strange reason.
     
  4. univepro

    univepro

    Joined:
    Mar 3, 2016
    Posts:
    2
    Hi there, I'm getting the same error. I'm using 2019.4.9f1. I just upgraded my project that I've been working on since February of this year. I've changed version several times and the error just appear today. I've done two things with music specifically:
    1) Imported a music track from MyAssets within the Unity Editor.
    2) Drag and dropped two music tracks from my computer directly into my project folder via the Unity Editor.

    When the files first import no error appears, but when I click on the file to see its properties I get the error. Any subsequent interaction in the inspector window continues to output the error: one or two errors of the exact same time type for every interaction with the file or properties.

    Again, I just had this project in 2019.4.8 and I never got this error. I'm on Windows 10, one of the tracks I'm importing is .wav and the other two are .mp3, all tracks have the default Unity settings applied in the inspector.
     
  5. chrislagaly

    chrislagaly

    Joined:
    Aug 19, 2020
    Posts:
    1
    I'm sorry that I'm absolutely no help, but I'm having the exact same issue when I did almost the exact same thing.
     
  6. AdminOhrizon

    AdminOhrizon

    Joined:
    Feb 11, 2016
    Posts:
    18
    Same here but for VideoClips. This message appears after upgrading to Unity 2019.4.9f1 from 2019.3.2f1, as described by univepro. The build target is set to UWP.

     
  7. ARAMMDE

    ARAMMDE

    Joined:
    Oct 5, 2019
    Posts:
    2
    I got the same problem when updating my project from 2019.1 to 2019.4LTS.
    My solution was to uninstall 2019.4LTS and reinstall 2019.4LTS but to deselect support module for "Universal Windows Platform Build Support" (which I newer used before).
    This module is preselected by default when installing with the Unity Hub. Also this reinstall solved some warnings related to ogg. audio files like "FSBTool WARNING: This source file was truncated." which I also have had never before.
     
    arminelec likes this.
  8. arminelec

    arminelec

    Joined:
    Jul 16, 2015
    Posts:
    4
    Same issue here. I also reinstalled 2019.4.9f1 without Universal Windows Platform Build Support and I no longer get the error when selecting an audio file in Unity project explorer window.

    I do build Universal Windows Platform builds, which means this is not really a fix for me. But wanted to post and mention that the previous comment did make things work on my machine too (PC, not a mac).

    Just extra info for the Unity team: The documentation on 2019.4 about AudioImporter.GetOverrideSampleSettings does not mention WSA as a valid parameter. However the error message does.

    Documentation:
    Error message:
    Unknown platform passed to AudioImporter.GetOverrideSampleSettings (WSA), please use one of 'Web', 'Standalone', 'iOS', 'Android', 'WebGL', 'PS4', 'XboxOne' or 'WSA'
    UnityEditor.Experimental.AssetImporters.AssetImporterEditor:InternalSetTargets(Object[])
     
    GliderGuy likes this.
  9. Snigros

    Snigros

    Joined:
    Jun 12, 2018
    Posts:
    15
    I have also been getting this error (with recent 2019.4.x versions - including latest at the time of writing 2019.4.10f1). Also using UWP. Seems to be generated sometimes (but not always) after playing back an audio clip via the editor/inspector - but only after the clip has finished playing. Weird as the audio clips themselves (mainly .wav format) have been unchanged since added to the project over the last year or so - and everything seems to function OK otherwise.
     
  10. EveningWolf

    EveningWolf

    Joined:
    Apr 14, 2017
    Posts:
    19
    Having the exact same issue. Went from 2019.4.3 to 2019.4.10. Whenever I try to add sound clips to my project they won't play and I see this error when clicking on them. All sound files that were in my project before upgrading seem to still work.
     
    Last edited: Sep 13, 2020
  11. arminelec

    arminelec

    Joined:
    Jul 16, 2015
    Posts:
    4
    After a bit more investigation today, I found the issue the OP, myself and several other experience could be related to the DSP Buffer Size. I need to verify this with others who experience this issue (as they posted here in this thread).

    To reiterate, total of two issues were mentioned above:
    • Error message being displayed when an audio asset is selected in the Unity Inspector.
    • Distorted audio is played back when an audio asset is selected in the Unity Inspector.

    Here are steps to verify whether it is related to DSP Buffer Size or not:
    • Go to your Edit -> Project Settings
    • Select Audio from the list
    • Select the different DSP Buffer Size values and each time click on the audio asset file (an play a preview).
    If you experience the same issue when you select one of the DSP Buffer Size values, but not experience the issue when you select another, then we are one step closer to help the Unity team finding out what it could be related.

    Otherwise, I am out of ideas.
     
    peglan likes this.
  12. Matias2D

    Matias2D

    Joined:
    Apr 15, 2020
    Posts:
    1
    Hy! did you solve this problem? I'm having the same problem here....:(
     
  13. Robert_Hildebrand

    Robert_Hildebrand

    Joined:
    Sep 19, 2018
    Posts:
    15
    Running into the same problem with 2019.4.10f1 and was not able to build for android. Changed the DSP Buffer Size to "Best Performance" and everything is working now.

    Thank you arminelec
     
  14. djweaver

    djweaver

    Joined:
    Jul 4, 2020
    Posts:
    105
    Same here. 2019.4.11
     
  15. APendred

    APendred

    Joined:
    Sep 8, 2020
    Posts:
    1
    I've just got the same issue here, thankfully I'm only learning and haven't done anything substantial so no major frustration. But just for the record changing the DSP Buffer Size made no difference, with the error appearing after selecting every option. Additionally for me anyhow, audio works fine when a build is made and launched from the computer but not audible within unity when creating or playing you game.

    Error mentioned also appears regardless of the audio format or project including a new blank project.

    this is on both 2020.1.6 and 2020.1.7
     
  16. melockley02

    melockley02

    Joined:
    Aug 8, 2020
    Posts:
    2
    Has anyone figured this out yet?
    I keep getting the same error with all audio files. And can not get them to work in programs.
    I have tested in 2020.17f1 and 2020.1.6f1. Same symptoms in both.
    Started projects from scratch, even used audio files from Unit training course.
    Tested in 2018.4.27f1, and it worked fine.
    I updated all the divers (including audio drivers) on my computer, still having issues.
    Did not uninstall and re-install. I would like to have UWB, although I may try that next since I am mainly using WindowsGL at this time.
    I have tired various sound formats, with the same results
     
    Last edited: Oct 5, 2020
    Cearaj likes this.
  17. Carrmichaelll

    Carrmichaelll

    Joined:
    Nov 30, 2016
    Posts:
    62
    Getting this same issue ffs
     
  18. AdminOhrizon

    AdminOhrizon

    Joined:
    Feb 11, 2016
    Posts:
    18
    Has anyone filled an issue in the Unity tracker?

    @harini were you able to reproduce this issue?
     
    GliderGuy likes this.
  19. shenithsandeepa

    shenithsandeepa

    Joined:
    Nov 3, 2018
    Posts:
    1
    I also faced to this issue when I trying to drag and drop the file to script directly.

    Then I added Audio Source component to the game object. Then drag and dropped the audio file to that Audio Source component. Then I used that component in my script.

    Then my problem solved.
     
  20. B3Designs

    B3Designs

    Joined:
    Apr 11, 2019
    Posts:
    2
    version 2020.1.8f1 - Same issue. I get the errors:

    "Unknown platform passed to AudioImporter.GetOverrideSampleSettings (WSA), please use one of 'Web', 'Standalone', 'iOS', 'Android', 'WebGL', 'PS4', 'XboxOne' or 'WSA'
    UnityEditor.Experimental.AssetImporters.AssetImporterEditor:InternalSetTargets(Object[])"

    and

    "Unknown platform passed to AudioImporter.ContainsSampleSettingsOverride (WSA), please use one of 'Web', 'Standalone', 'iOS', 'Android', 'WebGL', 'PS4', 'XboxOne' or 'WSA'
    UnityEditor.Experimental.AssetImporters.AssetImporterEditor:InternalSetTargets(Object[])"

    when previewing the audio in the editor, and no sound or error in play mode.
     
    peturko likes this.
  21. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,057
    Same issue here, just started happening. :mad:
     
  22. Pontsci

    Pontsci

    Joined:
    Sep 15, 2020
    Posts:
    1
    Same issue is happening to me. It was working fine earlier in the day, but the error started showing up after I converted my project to a WebGL build. Tried uninstalling unity and reinstalling. In addition to that I re-imported my audio files after a fresh install, and the error still persists.
     
  23. HeizenblogGaming

    HeizenblogGaming

    Joined:
    Jun 12, 2016
    Posts:
    8
    I've had the same problem but deleted my MP3 music files and just had WAV files and it seemed to work so far.
     
  24. YoderVFXProductions

    YoderVFXProductions

    Joined:
    Mar 28, 2018
    Posts:
    3
    Here is the solution to this issue that worked for me. I am using Unity 2020.1.6f1.

    In Unity, go to your audio files and select the target build you are building to like Android for example. Click on which level of decompressing you are using and hit apply. Once you do this, then when you build out your game the error message will not pop up.

    If you are using a Sprite Atlas, then the same steps must be applied also. Below, are some screenshots to show what I am talking about.

    For some reason, run & build will still give you the error message, but if you do a regular build it will not.

    I hope this helps! :)
     

    Attached Files:

    Last edited: Oct 19, 2020
  25. VisualDima

    VisualDima

    Joined:
    May 21, 2020
    Posts:
    3
    Same here. 2020.1.10f Windows 10.
    Solution from YoderVFXProductions doesn't work fro me.
     
  26. EmreB99

    EmreB99

    Joined:
    Oct 8, 2018
    Posts:
    28
    Same issue here. 2019.4.13f1

    none of the solutions above worked for me. With this many people experiencing the same issue this should be flagged as a bug.
     
    Last edited: Oct 27, 2020
  27. GliderGuy

    GliderGuy

    Joined:
    Dec 14, 2018
    Posts:
    147
    I can confirm this happens on 2020.2.0b8 too. :(

    For me, it happened when I dragged the file from the File Explorer into Unity. (It also happens when moving the file directly into the Project's files using the File Explorer manually).
    All audio-based packages seem completely unaffected, though. So we have that.
     
  28. outramjamie_unity

    outramjamie_unity

    Joined:
    Jul 18, 2020
    Posts:
    1
    Does this occur on all Windows 10 versions?

    I'm not entirely sure if this is related but I noticed someone mentioned FSBTool warnings, considering it only seems to happen on windows 10 for some users and I can't reproduce it myself anymore. The FSBTool on any Window 10 'N' editions requires a media feature pack download to function properly. Download URL: https://www.microsoft.com/en-us/software-download/mediafeaturepack

    If you're not on a Windows 10 N edition this wont help

    (The error I was fixing when I found this was an FSB initialization error after a project update with WebGL Build target on Windows 10 Education N. It also sometimes threw similar warnings/errors complaining about WSA, I haven't had any audio importing errors since downloading the feature pack)
     
  29. Alean909

    Alean909

    Joined:
    Jul 2, 2020
    Posts:
    2
    i am having the same issue and can't seems to know why
     
  30. darkxelblack

    darkxelblack

    Joined:
    Oct 28, 2020
    Posts:
    1
    Hi,
    I have the same Issue with Unity 2020.1.10f1 and 11f1.
    I tried the solutions above, nothing worked for me.

    In my Unity Hub I saw that I have Universal Windows Platform Build Support installed.
    So I tried to install the UWP SDK from Windows but this also not helped to solve the problem.

    After all this, I uninstalled unity 2020.1.xx and reinstalled it but without UWP, only Windows Build Support. You don' need it for normal Standalone Games.

    After that I loaded my Project and voila the Errors are gone.
     
  31. peglan

    peglan

    Joined:
    Dec 4, 2016
    Posts:
    2
    Helped me thanks
     
  32. GliderGuy

    GliderGuy

    Joined:
    Dec 14, 2018
    Posts:
    147
    @harini, have you made any progress on this?

    I, myself, am experiencing the error on 2020.2.0b9 using a Windows OS and I have the Universal Windows Platform Build Support SDK installed in my Unity project. :cool:

    It seems like the user's OS and whether or not they have the Universal Windows Platform Build Support SDK installed may have something to do with it, as described in these two posts:
    But others have solved it in different ways... for different versions of Unity and with different OS's. So it isn't really sound, conclusive evidence. :oops:

    But have you been looking into this at all?
    The error is still plaguing me and others. :(
     
  33. marck_ozz

    marck_ozz

    Joined:
    Nov 30, 2018
    Posts:
    38
    Hi!

    Same issue on 2019.4.12 LTS, it started when I changed one audio clip from "Decompress on load" to "streaming". Now the error shows up every time I select any audio clip. HOWEVER all the clips plays and sounds well on play mode so, I suppose that this is a Unity Editor Bug, don't ya think @harini?

    I'm developing for UWP so I don't try to remove the this support modul.

    Forgot: change DSP Buffer Size to "Best Performance" din't work
     
    Last edited: Nov 4, 2020
    GliderGuy likes this.
  34. Shaelle

    Shaelle

    Joined:
    Nov 19, 2018
    Posts:
    4
    Just encountered the same bug. Manipulating with DSP Buffer Size settings does not seems to helped too much: it's looks like when I switching to "Best latency" problem disappear for the next click on audio, but when reappear again.
     
  35. ahilal845

    ahilal845

    Joined:
    Apr 11, 2020
    Posts:
    1
    Simple solution, open another scene and come back to original scene and than u will have no problemtrust me on this
     
  36. ForgeHope

    ForgeHope

    Joined:
    Nov 6, 2020
    Posts:
    1
    I had the same issue and found it changed to a WebGL platform under build settings by default I guess, I Just changed it to PC, Mac & Linux Standalone under the build settings and all my audio worked. Should note it is not a fix to get it to work for the WebGL platform, but at least when you are building it should be working as normal. It has worked for me.
     
  37. DigitalMaster37

    DigitalMaster37

    Joined:
    Jun 5, 2013
    Posts:
    5
    The above mentioned resolutions may work, but the way I resolved it, was to allow the fsbtool access on my antivirus software/firewall. It was blocking that import tool.

    I use BitDefender. Once I "unblocked' that, the issue was resolved and I then "reimported" those specific sound files and it worked.

    It may be worth a shot

    Just to explain a bit further. I ran into the error when I tried to import those sound files again after realizing something was wrong with them and getting the error above in the OP when I tried to click on them or reimport them.

    Fortunately for me, my bitdefender (not at first) prompted me stating that it blocked access to this "fsbtool" or something or another. Once I added the exception for it, I was able to resolve the issue by reimporting the sounds files.

    I hope this helps someone
     
    GliderGuy likes this.
  38. GliderGuy

    GliderGuy

    Joined:
    Dec 14, 2018
    Posts:
    147
    I just updated my project to 2020.2.0b10 and the errors seem to have completely disappeared! I suspect that they will come back and haunted me later, though. :(
     
  39. TheRaider

    TheRaider

    Joined:
    Dec 5, 2010
    Posts:
    2,191
    I had this error and downloaded latest version of unity, reimported and it is gone, but I can no longer preview audio files.
     
unityunity