Is it possible to load the user's music downloaded via itunes/google play store/etc. as in-game music assets?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By toed

Basically what I want to try is to allow the user to use their own downloaded music as the music in the game, with the specific music to be used in specific situations defined by the user. Is this even possible, or is the music downloaded through these services only accessible to the default music player of the OS?

I think AudioStreamPlayer only takes .wav and .ogg audio files. I’m not sure how well this will work with the file format iTunes uses (songs purchased from iTunes are aac by default) . Also, not all music will likely be saved to the users disk, since a lot of music is just streamed. You could try looking into this, but I have no idea if it will be helpful: MusicKit.

Default file location for iTunes:

  • Windows: C:\Users\<user>\Music\iTunes
  • Mac: /Users/<user>/Music/iTunes
  • Linux: not sure

Maybe something from this post would be useful in actually reading system files.

Eric Ellingson | 2019-02-18 06:03

Thanks a lot! Anything helps.

toed | 2019-02-18 17:07