Search Unity

Audio Using NAudio in UWP Build

Discussion in 'Audio & Video' started by Roywise, Jul 31, 2018.

  1. Roywise

    Roywise

    Joined:
    Jun 1, 2017
    Posts:
    68
    After finding out that Unity won't accept MP3 files, and downloaded MP3 data will have to be decoded to WAV to play, I've implemented a solution which uses NAudio. It works fine on most platforms except UWP, when we try to create a Windows Store App it resulst in the exception below;

    'UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\NAudio.dll" ...'

    Is it possible to compile the NAudio plugin in a way that it'll be able to be used in UWP?
     
    arufolo likes this.
  2. arufolo

    arufolo

    Joined:
    Mar 5, 2013
    Posts:
    8
    Bump. Having the same exact issue. Did you ever find a resolution?
     
  3. Roywise

    Roywise

    Joined:
    Jun 1, 2017
    Posts:
    68
    Sadly, no. We removed NAudio completely and build a on-demand conversion in our backend for our UWP project.