1
0
mirror of https://github.com/mon/2dxTools.git synced 2024-11-23 22:10:57 +01:00
Small tools to deal with 2dx audio container files
Go to file
2019-10-14 08:21:13 +10:00
.gitignore Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
2dx.h Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
2dxBuild.c Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
2dxDump.c Close input files 2019-10-14 00:10:52 +09:00
2dxMerge.c Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
2dxWav.c Working preview trim 2017-03-23 22:46:35 +10:00
2dxWav.h Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
2dxWavConvert.c Working preview trim 2017-03-23 22:46:35 +10:00
Makefile Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
README.md Fix newlines 2017-06-21 12:12:17 +10:00
shared.c Bout time I made a repo for this 2017-03-23 22:36:32 +10:00
shared.h Bout time I made a repo for this 2017-03-23 22:36:32 +10:00

2dxTools

A set of tools for working with 2dx audio containers.

Download here

2dxDump

2dxDump infile.2dx

Takes a 2dx and dumps all its wavs. Names them sequentially with no leading zeros.

2dxBuild

2dxBuild outfile.2dx

Builds a 2dx with default paramaters for loop point/volume etc.

2dxMerge

2dxMerge infile.2dx outfile.2dx

For each file in infile.2dx, if there is a .wav present in the directory, it will replace it in the new file. Useful for extracting a single audio file, editing it, then adding it back.

2dxWavConvert

2dxWavConvert infile outfile.wav [preview]

Takes any file that sox supports (mp3, flac, wav, ogg, etc) and converts it to the specific format required for 2dx files (MS-ADPCM wav with a block size of 256). If the third argument is "preview", the file is clipped to exactly 10 seconds to comply with preview wav requirements.

Example: Custom song preview + game audio

2dxWavConvert mySong.ogg 0.wav
2dxBuild 1234.2dx
2dxWavConvert mySong_preview.ogg 0.wav preview
2dxBuild 1234_pre.2dx

Tools to come:

2dxTransfer - will work like 2dxMerge, but will take two input files, an output, and a list of tracks to transfer. Metadata (such as loop points) will also be transferred.

Enhancements to 2dxDump and 2dxBuild to generate and load xml files so track parameters can be modified.

If you have a burning need for one of these unfinished tools, please get in contact. I appreciate motivation.