Skip to content

Commit e0d8154

Browse files
isHarryhK0lb3
authored andcommitted
fix: incorrect type hint in AudioClipConverter
1 parent b1c3023 commit e0d8154

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UnityPy/export/AudioClipConverter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import platform
66
from threading import Lock
7-
from typing import TYPE_CHECKING, Dict, Union
7+
from typing import TYPE_CHECKING, Dict
88

99
from UnityPy.streams import EndianBinaryWriter
1010

@@ -28,15 +28,14 @@
2828

2929

3030
def get_fmod_path(
31-
system: Union["Windows", "Linux", "Darwin"], arch: ["x64", "x86", "arm", "arm64"]
31+
system: str, # "Windows", "Linux", "Darwin"
32+
arch: str, # "x64", "x86", "arm", "arm64"
3233
) -> str:
3334
if system == "Darwin":
3435
# universal dylib
3536
return "lib/FMOD/Darwin/libfmod.dylib"
36-
3737
if system == "Windows":
3838
return f"lib/FMOD/Windows/{arch}/fmod.dll"
39-
4039
if system == "Linux":
4140
if arch == "x64":
4241
arch = "x86_64"
@@ -128,6 +127,7 @@ def get_pyfmodex_system_instance(channels: int, flags: int):
128127
SYSTEM_INSTANCES[instance_key] = (system, lock)
129128
return system, lock
130129

130+
131131
def dump_samples(
132132
clip: AudioClip, audio_data: bytes, convert_pcm_float: bool = True
133133
) -> Dict[str, bytes]:

0 commit comments

Comments
 (0)