Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Solved]Load Files from an external "MyMusic" folder

Discussion in 'Audio & Video' started by dernat71, Mar 27, 2015.

  1. dernat71

    dernat71

    Joined:
    Jul 7, 2014
    Posts:
    14
    Hi everyone!

    I'm developing an application to visualise music in Oculus Rift. I can't afford with the external (post-build) music file loading..

    I want my application to go in a define folder named "MyMusic" which is included in the data folder. How can I do that? I've already read other subjects about that but I meet some difficulties to understand the code..

    Thank you!

    Nathan
     
  2. jerotas

    jerotas

    Joined:
    Sep 4, 2011
    Posts:
    5,555
    I would just use a "Resources" folder and put music and sound effect folders within it. Then you can use Resources.Load commands and such.
     
  3. dernat71

    dernat71

    Joined:
    Jul 7, 2014
    Posts:
    14
    Yeah but it just works before the Build :( Me , i'd like the user drag and drop its files into a MyMusic folder and the application use it
     
  4. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    279
  5. jerotas

    jerotas

    Joined:
    Sep 4, 2011
    Posts:
    5,555
    Oh ok. No idea.
     
  6. gregzo

    gregzo

    Joined:
    Dec 17, 2011
    Posts:
    795
    G-Audio has both sync and async wav and ogg loaders / streamers, part of a flexible I/O system that also includes wav writing, mic input and caching in memory. Plus a ton of other stuff...
     
  7. dernat71

    dernat71

    Joined:
    Jul 7, 2014
    Posts:
    14
    Thank you all ! You solved my problem ! :)
     
  8. Cytanic

    Cytanic

    Joined:
    Jun 6, 2019
    Posts:
    5
    @dernat71 how you resolve the problem , pls , pls ,pls i dont know how enter to files in the folder music , i can create a folder music in the mobile but i dont know how enter to music files ,sorry for mi english , i dont speak english very good
     
  9. DeveloperJake

    DeveloperJake

    Joined:
    May 25, 2020
    Posts:
    13
    How did you solve it??