public static byte[] ExportAudio(AudioClip audioClip) { byte[] data = (byte[])audioClip.GetAudioData(); if (data.Length == 0) { return(null); } return(AudioConverter.ConvertToWav(data)); }
public static byte[] ExportAudio(AudioClip audioClip) { byte[] data = (byte[])audioClip.GetAudioData(); if (data.Length == 0) { return(null); } return(AudioConverter.ConvertToWav(data)); }