Search Unity

  1. 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:
    11
    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:
    11
    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:
    17
    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[])
     
  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.
     
  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:
    1
    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:
    17
    Has anyone filled an issue in the Unity tracker?

    @harini were you able to reproduce this issue?
     
  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,050
    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:
    1
    Same here. 2020.1.10f Windows 10.
    Solution from YoderVFXProductions doesn't work fro me.
     
unityunity