@@ -53,51 +53,51 @@ public static class XactExtractor {
53
53
Label_RIFF . Length + 4 + Label_WAVE . Length + Label_fmt . Length +
54
54
4 + 2 + 2 + 4 + 4 + 2 + 2 + Label_data . Length + 4 ;
55
55
56
- private const string WaveBankList = "WaveBank .txt" ;
56
+ private const string WaveBankList = "TrackList .txt" ;
57
57
58
58
/** Mapping of music wave bank indexes to their names */
59
59
private static string [ ] TrackNames = {
60
- "01_OverworldNight " ,
61
- "02_Eerie " ,
62
- "03_OverworldDay " ,
63
- "04_Boss1 " ,
64
- "05_TitleScreen " ,
65
- "06_Jungle " ,
66
- "07_Corruption " ,
67
- "08_Hallow " ,
68
- "09_UndergroundCorruption " ,
69
- "10_UndergroundHallow " ,
70
- "11_Boss2 " ,
71
- "12_Underground " ,
72
- "13_Boss3 " ,
73
- "14_Snow " ,
74
- "15_Space " ,
75
- "16_Crimson " ,
76
- "17_Golem " ,
77
- "18_AlternateDay " ,
78
- "19_Rain " ,
79
- "20_UndergroundSnow " ,
80
- "21_Desert " ,
81
- "22_Ocean " ,
82
- "23_Dungeon " ,
83
- "24_Plantera " ,
84
- "25_QueenBee " ,
85
- "26_Lizhard " ,
86
- "27_Eclipse " ,
87
- "28_RainAmbience " ,
88
- "29_Mushrooms " ,
89
- "30_PumpkinMoon " ,
90
- "31_AlternateUnderground " ,
91
- "32_FrostMoon " ,
92
- "33_UndergroundCrimson " ,
93
- "34_LunarBoss " ,
94
- "35_PirateInvasion " ,
95
- "36_Underworld " ,
96
- "37_MartianMadness " ,
97
- "38_MoonLord " ,
98
- "39_GoblinArmy " ,
99
- "40_Sandstorm " ,
100
- "41_OldOnesArmy "
60
+ "01 Overworld Night " ,
61
+ "02 Eerie " ,
62
+ "03 Overworld Day " ,
63
+ "04 Boss 1 " ,
64
+ "05 Title Screen " ,
65
+ "06 Jungle " ,
66
+ "07 Corruption " ,
67
+ "08 Hallow " ,
68
+ "09 Underground Corruption " ,
69
+ "10 Underground Hallow " ,
70
+ "11 Boss 2 " ,
71
+ "12 Underground " ,
72
+ "13 Boss 3 " ,
73
+ "14 Snow " ,
74
+ "15 Space " ,
75
+ "16 Crimson " ,
76
+ "17 Boss 4 " ,
77
+ "18 Alt Overworld Day " ,
78
+ "19 Rain " ,
79
+ "20 Underground Snow " ,
80
+ "21 Desert " ,
81
+ "22 Ocean " ,
82
+ "23 Dungeon " ,
83
+ "24 Plantera " ,
84
+ "25 Boss 5 " ,
85
+ "26 Temple " ,
86
+ "27 Eclipse " ,
87
+ "28 Rain Ambience " ,
88
+ "29 Mushrooms " ,
89
+ "30 Pumpkin Moon " ,
90
+ "31 Alt Underground " ,
91
+ "32 Frost Moon " ,
92
+ "33 Underground Crimson " ,
93
+ "34 Lunar Event " ,
94
+ "35 Pirate Invasion " ,
95
+ "36 Hell " ,
96
+ "37 Martian Madness " ,
97
+ "38 Moon Lord " ,
98
+ "39 Goblin Invasion " ,
99
+ "40 Sandstorm " ,
100
+ "41 Old One's Army "
101
101
} ;
102
102
103
103
static XactExtractor ( ) {
@@ -212,7 +212,7 @@ public static bool Extract(string inputFile, string outputDirectory) {
212
212
// Skip terraria's wave bank's name. "Wave Bank".
213
213
reader . BaseStream . Position += 64 ;
214
214
215
- int EntryMetaDataElementSize = reader . ReadInt32 ( ) ;
215
+ int EntryMetaDataElementSize = reader . ReadInt32 ( ) ;
216
216
reader . ReadInt32 ( ) ; // EntryNameElementSize
217
217
reader . ReadInt32 ( ) ; // Alignment
218
218
wavebank_offset = segmentOffsets [ 1 ] ;
@@ -223,7 +223,7 @@ public static bool Extract(string inputFile, string outputDirectory) {
223
223
224
224
int playregion_offset = segmentOffsets [ 4 ] ;
225
225
for ( int current_entry = 0 ; current_entry < EntryCount ; current_entry ++ ) {
226
- String track = current_entry < TrackNames . Length ? TrackNames [ current_entry ] : ( current_entry + 1 ) + "_Unknown " ;
226
+ String track = current_entry < TrackNames . Length ? TrackNames [ current_entry ] : ( current_entry + 1 ) + " Unknown " ;
227
227
228
228
Status ( "Extracting " + track ) ;
229
229
Percentage ( 0.1f + ( 0.9f / EntryCount ) * current_entry ) ;
@@ -361,7 +361,7 @@ public static bool Extract(string inputFile, string outputDirectory) {
361
361
// output.position(pos);
362
362
writer . Close ( ) ;
363
363
364
- Ffmpeg . Convert ( wmaPath , path ) ;
364
+ FFmpeg . Convert ( wmaPath , path ) ;
365
365
366
366
File . Delete ( wmaPath ) ;
367
367
} else if ( codec == MiniFormatTag_ADPCM ) {
0 commit comments