From c30a6aedb83981b40bc28d3c24f47e25140e2bd1 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Wed, 1 Sep 2021 18:43:51 +0200 Subject: [PATCH] Use separate L/R volume on sound objects --- io_export_psx_tmesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_export_psx_tmesh.py b/io_export_psx_tmesh.py index ffd4c84..fd0deae 100644 --- a/io_export_psx_tmesh.py +++ b/io_export_psx_tmesh.py @@ -547,7 +547,7 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper): for obj in soundFiles: f.write("SOUND_OBJECT " + fileName + "_" + obj.objName.replace(".", "_") + " = {\n" + "\t{" + str(psxLoc(obj.location.x)) + "," + str(psxLoc(obj.location.y)) + "," + str(psxLoc(obj.location.z)) + "},\n" + - "\t" + str(obj.volume * 0x3fff) + ", " + str(obj.volume_min * 0x3fff) + ", " + str(obj.volume_max * 0x3fff) + ",\n" ) + "\t" + str(obj.volume * 0x3fff) + ", " + str(obj.volume * 0x3fff) + ", " + str(obj.volume_min * 0x3fff) + ", " + str(obj.volume_max * 0x3fff) + ",\n" ) if obj.XAsize == -1 : f.write("\t&" + fileName + "_VAGBank.samples[" + str(obj.index) + "],\n" + "\t0,\n") @@ -865,7 +865,7 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper): h.write("typedef struct SOUND_OBJECT {\n" + "\tVECTOR location;\n" + - "\tint volume, volume_min, volume_max;\n" + + "\tint volumeL, volumeR, volume_min, volume_max;\n" + "\tVAGsound * VAGsample;\n" + "\tXAsound * XAsample;\n" + "\tMESH * parent;\n" +