Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

[Open Source] AudioImporter

Discussion in 'Assets and Asset Store' started by HelloMeow, Sep 15, 2014.

  1. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    188

    Asset Store | Github

    Here is a free package that lets you import mp3 files at runtime.

    AudioImporter enables you to import audio files at runtime in Unity. It loads an audio file into an AudioClip. The package includes a simple file browser that can be used to select a file.

    An optional importer using BASS dll and BASS net is included as a separate package. This importer needs additional licenses and steps to use. See Using Bass Importer for more information.

    Features:
    • Asynchronous importing
    • File browser
    • Supports Windows, Android and iOS
     
    Last edited: May 20, 2019 at 10:26 PM
  2. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    188
    A small update. This now includes an importer that uses Bass.dll and the importers are now derived from MonoBehaviour.
     
  3. RickyTB

    RickyTB

    Joined:
    Dec 13, 2014
    Posts:
    3
    Wow thankyou very much, this is going to help me a lot in a future project. Can't believe nobody has given you a thanks in all this time.
     
  4. F0RG0TTEN

    F0RG0TTEN

    Joined:
    Sep 20, 2015
    Posts:
    1
    Thank you for sharing this for free! I don't understand why didn't you get more attention for such useful tool like that one.
     
  5. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,655
  6. Ocram1989

    Ocram1989

    Joined:
    Jul 15, 2016
    Posts:
    1
    Is free this??
     
  7. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    188
    Yes. One of the importers uses Bass.dll, which is not free for commercial projects, but every importer is optional.
     
  8. ikemen_blueD

    ikemen_blueD

    Joined:
    Jan 19, 2013
    Posts:
    299
    @HelloMeow this is supppperrr useful, so many thanks. I emailed u before, can't wait for new update from RhythmTool, no memory allocations every frame plz :)
     
    Last edited: Jan 8, 2017
  9. jalemanyf

    jalemanyf

    Joined:
    Jun 16, 2013
    Posts:
    16
    Hello,

    It seems very interesting but I still can't do it Works...

    I'm using Unity 5.3.3f1 on a Windows 8.1 to test it.

    I have also downloaded the rythmtool sample: it opens, navigate for the folders but nothing sounds after select an mp3...

    Any idea about what I'm doing wrong?

    It seems easy to follow when I read but anyone has any step by step guide to be sure I have done everything correct?

    Thanks!
     
  10. Allthebees

    Allthebees

    Joined:
    Apr 22, 2017
    Posts:
    3
    Hey there. So I've been working on a game using your rhythm tool as well as these .mp3 importer.

    I was coming up against an issue where some mp3 files would not be able to load. After a bit of messing around, I found that the while loop in FillBuffer() in the DecoderImporter class would get stuck.

    Read would return 0, and therefore index would not increase. I am not 100% sure why the issue happens but a simple solution is to check if index + read is equal to index, and break out of the while loop if the condition is met.

    Hopefully this can help anyone else that might be running into this issue
     
  11. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    188
    Thanks for reporting this issue, I'm going to look into it.
     
  12. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    188
    Version 3.0 is ready. I've decided to put it up on the Asset Store and Github to make it easier to add to a project. It should be available on the asset store soon.