Why my audio gets distorted in an Android build (Unity3D)












0















I have a game in Unity3D, In this game I imported some audio files that are songs, I composed them in a program called Bosca Ceoil, save it as .wav, then, I imported and edited them in Audacity, as the same, saved them as .wav, and finally imported them to Unity.



The thing here is that these audios sound distorted, like if they were to loud and kind of a robotic effect.



So I turned off the Doppler effect in the Audio Source and also in the project settings.



Its a little weird because this audios only gets distorted when I build it in my Android device, in my computer, in the editor works fine.



Also, the distorted parts are only specific ones, curiosly the parts with drums dont get distorted, all the others yes do, and this is very strange because the distorted parts are not loud.










share|improve this question























  • I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

    – Symon
    Jan 2 at 20:25











  • Yes, I've played the audio before

    – Sebastián García
    Jan 2 at 21:11
















0















I have a game in Unity3D, In this game I imported some audio files that are songs, I composed them in a program called Bosca Ceoil, save it as .wav, then, I imported and edited them in Audacity, as the same, saved them as .wav, and finally imported them to Unity.



The thing here is that these audios sound distorted, like if they were to loud and kind of a robotic effect.



So I turned off the Doppler effect in the Audio Source and also in the project settings.



Its a little weird because this audios only gets distorted when I build it in my Android device, in my computer, in the editor works fine.



Also, the distorted parts are only specific ones, curiosly the parts with drums dont get distorted, all the others yes do, and this is very strange because the distorted parts are not loud.










share|improve this question























  • I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

    – Symon
    Jan 2 at 20:25











  • Yes, I've played the audio before

    – Sebastián García
    Jan 2 at 21:11














0












0








0








I have a game in Unity3D, In this game I imported some audio files that are songs, I composed them in a program called Bosca Ceoil, save it as .wav, then, I imported and edited them in Audacity, as the same, saved them as .wav, and finally imported them to Unity.



The thing here is that these audios sound distorted, like if they were to loud and kind of a robotic effect.



So I turned off the Doppler effect in the Audio Source and also in the project settings.



Its a little weird because this audios only gets distorted when I build it in my Android device, in my computer, in the editor works fine.



Also, the distorted parts are only specific ones, curiosly the parts with drums dont get distorted, all the others yes do, and this is very strange because the distorted parts are not loud.










share|improve this question














I have a game in Unity3D, In this game I imported some audio files that are songs, I composed them in a program called Bosca Ceoil, save it as .wav, then, I imported and edited them in Audacity, as the same, saved them as .wav, and finally imported them to Unity.



The thing here is that these audios sound distorted, like if they were to loud and kind of a robotic effect.



So I turned off the Doppler effect in the Audio Source and also in the project settings.



Its a little weird because this audios only gets distorted when I build it in my Android device, in my computer, in the editor works fine.



Also, the distorted parts are only specific ones, curiosly the parts with drums dont get distorted, all the others yes do, and this is very strange because the distorted parts are not loud.







c# unity3d audio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 19:59









Sebastián GarcíaSebastián García

84




84













  • I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

    – Symon
    Jan 2 at 20:25











  • Yes, I've played the audio before

    – Sebastián García
    Jan 2 at 21:11



















  • I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

    – Symon
    Jan 2 at 20:25











  • Yes, I've played the audio before

    – Sebastián García
    Jan 2 at 21:11

















I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

– Symon
Jan 2 at 20:25





I'm not sure yet how this applies to C#-- But have you tested the files before importing them to anything? Perhaps the imports are causing the distortion.

– Symon
Jan 2 at 20:25













Yes, I've played the audio before

– Sebastián García
Jan 2 at 21:11





Yes, I've played the audio before

– Sebastián García
Jan 2 at 21:11












1 Answer
1






active

oldest

votes


















0














Unity does not have a built-in compressor, which means any waveforms that add up to over 1 will distort. (This will invariably happen if you are importing high-quality and/or loud clips.)



You can use the Audio Manager in Unity’s Editor to tweak the maximum Volume of all sounds played in the scene.



but if it works in the editor it could be the below



If you are experiencing issues with sound quality, volume, distortion etc and you are running Android 5.x Lollipop please try disabling 'Nuplayer' from the developer settings. This is an experimental player Google introduced to Android and is known to cause some issues.






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012414%2fwhy-my-audio-gets-distorted-in-an-android-build-unity3d%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Unity does not have a built-in compressor, which means any waveforms that add up to over 1 will distort. (This will invariably happen if you are importing high-quality and/or loud clips.)



    You can use the Audio Manager in Unity’s Editor to tweak the maximum Volume of all sounds played in the scene.



    but if it works in the editor it could be the below



    If you are experiencing issues with sound quality, volume, distortion etc and you are running Android 5.x Lollipop please try disabling 'Nuplayer' from the developer settings. This is an experimental player Google introduced to Android and is known to cause some issues.






    share|improve this answer




























      0














      Unity does not have a built-in compressor, which means any waveforms that add up to over 1 will distort. (This will invariably happen if you are importing high-quality and/or loud clips.)



      You can use the Audio Manager in Unity’s Editor to tweak the maximum Volume of all sounds played in the scene.



      but if it works in the editor it could be the below



      If you are experiencing issues with sound quality, volume, distortion etc and you are running Android 5.x Lollipop please try disabling 'Nuplayer' from the developer settings. This is an experimental player Google introduced to Android and is known to cause some issues.






      share|improve this answer


























        0












        0








        0







        Unity does not have a built-in compressor, which means any waveforms that add up to over 1 will distort. (This will invariably happen if you are importing high-quality and/or loud clips.)



        You can use the Audio Manager in Unity’s Editor to tweak the maximum Volume of all sounds played in the scene.



        but if it works in the editor it could be the below



        If you are experiencing issues with sound quality, volume, distortion etc and you are running Android 5.x Lollipop please try disabling 'Nuplayer' from the developer settings. This is an experimental player Google introduced to Android and is known to cause some issues.






        share|improve this answer













        Unity does not have a built-in compressor, which means any waveforms that add up to over 1 will distort. (This will invariably happen if you are importing high-quality and/or loud clips.)



        You can use the Audio Manager in Unity’s Editor to tweak the maximum Volume of all sounds played in the scene.



        but if it works in the editor it could be the below



        If you are experiencing issues with sound quality, volume, distortion etc and you are running Android 5.x Lollipop please try disabling 'Nuplayer' from the developer settings. This is an experimental player Google introduced to Android and is known to cause some issues.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 21:16









        dokdok

        1




        1
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012414%2fwhy-my-audio-gets-distorted-in-an-android-build-unity3d%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            Npm cannot find a required file even through it is in the searched directory

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith