You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a typo in the GeneratedClip.cs file
You have 2 ReadOnlyMemory
audioData
ClipData
Only ClipData is initialized in the constructor but then this code try to read audioData an is always empty.
publicAudioClipAudioClip{get{if(audioClip==null&&!audioData.IsEmpty){varpcmData=PCMEncoder.Decode(audioData.ToArray());audioClip=AudioClip.Create(Id,pcmData.Length,1,SampleRate,false);audioClip.SetData(pcmData,0);}if(audioClip==null){Debug.LogError($"{nameof(audioClip)} is null, try loading it with LoadCachedAudioClipAsync");}returnaudioClip;}}
Originally posted by @StephenHodgson in #110
I think there is a typo in the GeneratedClip.cs file
You have 2 ReadOnlyMemory
Only ClipData is initialized in the constructor but then this code try to read audioData an is always empty.
I think it should be
The text was updated successfully, but these errors were encountered: