Unity3D: How to save wav file..

Unity3D: How to save wav file..

C# script to save an AudioClip as a .wav file by darktable in GitHub:

https://gist.github.com/darktable/2317063

But, if you download wav by calling WWW

and you have NGUI, you can try this:

NGUITools.Save("filename.wav",YourWww.bytes);

file will be saved in : Application.persistentDataPath + "/" + fileName

NGUI is really a great plugin!!

Note: URLs passed to WWW class must be '%' escaped.

 
 

  按個讚!~支持本站!~

FB推薦載入中