Files
2026-06-04 11:42:34 +02:00

57 lines
1.6 KiB
C#

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace UnityEngine.Networking
{
// Token: 0x02000299 RID: 665
[StructLayout(LayoutKind.Sequential)]
public sealed class DownloadHandlerAudioClip : DownloadHandler
{
// Token: 0x06002D4D RID: 11597 RVA: 0x0004025C File Offset: 0x0003E45C
[RequiredByNativeCode]
public DownloadHandlerAudioClip(string url, AudioType audioType)
{
this.InternalCreateAudioClip(url, audioType);
}
// Token: 0x06002D4E RID: 11598
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern void InternalCreateAudioClip(string url, AudioType audioType);
// Token: 0x06002D4F RID: 11599 RVA: 0x00040270 File Offset: 0x0003E470
protected override byte[] GetData()
{
return this.InternalGetData();
}
// Token: 0x06002D50 RID: 11600 RVA: 0x0004028C File Offset: 0x0003E48C
protected override string GetText()
{
throw new NotSupportedException("String access is not supported for audio clips");
}
// Token: 0x06002D51 RID: 11601
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern byte[] InternalGetData();
// Token: 0x17000A45 RID: 2629
// (get) Token: 0x06002D52 RID: 11602
public extern AudioClip audioClip
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x06002D53 RID: 11603 RVA: 0x0004029C File Offset: 0x0003E49C
public static AudioClip GetContent(UnityWebRequest www)
{
return DownloadHandler.GetCheckedDownloader<DownloadHandlerAudioClip>(www).audioClip;
}
}
}