mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 08:34:13 +08:00
.
This commit is contained in:
parent
b1385a9e74
commit
414a1b31fd
48
.github/scripts/build_lunatranslator.py
vendored
48
.github/scripts/build_lunatranslator.py
vendored
@ -263,36 +263,24 @@ cmake --build ../build/x86_xp --config Release --target ALL_BUILD -j 14
|
|||||||
def downloadbass():
|
def downloadbass():
|
||||||
|
|
||||||
os.chdir(rootDir + "\\temp")
|
os.chdir(rootDir + "\\temp")
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/bass24.zip")
|
for link in (
|
||||||
subprocess.run(f"7z x bass24.zip -obass24")
|
"https://www.un4seen.com/files/bass24.zip",
|
||||||
shutil.move(
|
"https://www.un4seen.com/files/z/2/bass_spx24.zip",
|
||||||
"bass24/bass.dll",
|
"https://www.un4seen.com/files/z/2/bass_aac24.zip",
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
"https://www.un4seen.com/files/bassopus24.zip",
|
||||||
)
|
):
|
||||||
shutil.move(
|
name = link.split("/")[-1]
|
||||||
"bass24/x64/bass.dll",
|
d = name.split(".")[0]
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
subprocess.run("curl -LO " + link)
|
||||||
)
|
subprocess.run(f"7z x {name} -o{d}")
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_spx24.zip")
|
shutil.move(
|
||||||
subprocess.run(f"7z x bass_spx24.zip -obass_spx24")
|
f"{d}/{d[:-2]}.dll",
|
||||||
shutil.move(
|
f"{rootDir}/files/plugins/DLL32",
|
||||||
"bass_spx24/bass_spx.dll",
|
)
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
shutil.move(
|
||||||
)
|
f"{d}/x64/{d[:-2]}.dll",
|
||||||
shutil.move(
|
f"{rootDir}/files/plugins/DLL64",
|
||||||
"bass_spx24/x64/bass_spx.dll",
|
)
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
|
||||||
)
|
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_aac24.zip")
|
|
||||||
subprocess.run(f"7z x bass_aac24.zip -obass_aac24")
|
|
||||||
shutil.move(
|
|
||||||
"bass_aac24/bass_aac.dll",
|
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
|
||||||
)
|
|
||||||
shutil.move(
|
|
||||||
"bass_aac24/x64/bass_aac.dll",
|
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
@ -2276,7 +2276,7 @@ class mdict(cishubase):
|
|||||||
if not file_content:
|
if not file_content:
|
||||||
return
|
return
|
||||||
ext = os.path.splitext(url)[1].lower()
|
ext = os.path.splitext(url)[1].lower()
|
||||||
if ext in (".aac", ".spx"):
|
if ext in (".aac", ".spx", ".opus"):
|
||||||
mp3 = bass_decode(file_content, ext)
|
mp3 = bass_decode(file_content, ext)
|
||||||
if not mp3:
|
if not mp3:
|
||||||
print(ext, "decode error")
|
print(ext, "decode error")
|
||||||
|
@ -141,7 +141,7 @@ class playonce:
|
|||||||
|
|
||||||
BASS_Init(-1, 44100, 0, 0, 0)
|
BASS_Init(-1, 44100, 0, 0, 0)
|
||||||
# https://www.un4seen.com/
|
# https://www.un4seen.com/
|
||||||
plugins = {".spx": "bass_spx.dll", ".aac": "bass_aac.dll"}
|
plugins = {".spx": "bass_spx.dll", ".aac": "bass_aac.dll", ".opus": "bassopus.dll"}
|
||||||
|
|
||||||
pluginshandle = {}
|
pluginshandle = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user