Download audio with Unity on android

Asked

Viewed 35 times

1

I’m trying to download an audio, in the editor the download works, but after installed apk on mobile phone, it downloads the file, soque not complete, it saves a 40b file, while the file saved in the editor has 147kb, I’m using a script I found on Github, link here

  • Hello. First, do not put a link to an external code. Try to put the code directly in the question. If you don’t know how to do it, take a look at [help]. Second, the code you cite only saves an Audioclip to the disc in Wav format. You say you are downloading, but you did not put the code of how you download it. In other words: what is the origin of your Audioclip? Are you sure he’s not only 40 bytes when you ask him to save it to disk? Try to run the audio in an Audioplayer before saving to make sure it is complete.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.