Use Sounds from External Library

Get help using Construct 2

Post » Sun Jun 21, 2015 12:17 pm

Hello,

I'm making a firework simulator/game which is heavily centered around the soundtrack. I have imported a nice selection for the game myself, but I wonder it it's possible to use the game to load sounds from an external library--say, iTunes or Windows Media Player.

For example, the player looks at the soundtrack and thinks it's terrible. He wants to use a song from his personal library instead.

As the developer, is there a way for me to allow access to that directory, then individually play that song in the game? I honestly have minimal experience with doing that type of stuff, so any advice at all would be helpful.

Thanks!
B
9
S
2
Posts: 28
Reputation: 811

Post » Sun Jun 21, 2015 3:51 pm

You could use a FileChooser on PC/Mac if they have the tracks they want to use downloaded. I have no idea how it would work for something like Spotify. They could pick their own audio and then you could load it in as a BLOB (See: https://www.scirra.com/manual/182/file-chooser, https://www.scirra.com/manual/109/audio)
B
7
S
2
Posts: 38
Reputation: 553

Post » Sun Jun 21, 2015 5:29 pm

Haha yeah, I meant choosing files the user has already downloaded. Spotify and other streaming services would be wayyyy too difficult, I imagine.

That seems to be similar to what I want. Thanks for the links. I'll mess around with it and see if I can figure something out.

Thank you!
B
9
S
2
Posts: 28
Reputation: 811

Post » Sun Jun 21, 2015 7:00 pm

FYI the Audio plug doesn't allow importing external sources at runtime.
You'll need a different plug.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest