scene.org File Archive

File download

<root>­/­parties­/­2007­/­blockparty07­/­wild/xplsv_gmdlstool.zip

File size:
107 401 bytes (104.88K)
File date:
2007-05-20 15:52:31
Download count:
all-time: 431

Preview

  • GmDLSTool.exe 110.50K
  • readme.txt 41B
  • xplsv_gmdlstool.txt 2.05K

file_id.diz

                       
                      ..________
   ..__        _______\         \ ________             _____..
-- \    \_____ \       \         \       _\..___ ____ /      / - 
-- /    /    _/_ \      \         \             \    \      / -- 
- /____/\    \   \_______\         \__..__\      \____\    / --- 
         \____\____ \     \         \_  \_________\/______/
             ..     ..     \_______../               ++ xplsv


        ---                                      ---
                     GmDLSTool by xplsv
        ---                                      ---
        ---                                      ---

        Here's a tool for 4KB authors looking to use
        the audio samples embedded in the Windows 
        GM.DLS file.  The file offset to each WAV
        sample is given and the samples can be 
        previewed and extracted to files for use in
        trackers.  
        
        Use the file offset at playback time to snag 
        the samples.  Samples are stored directly
        in the DLS as WAV files with just 2 changes.
        In the DLS the 'LIST' tag is in the place of
        the WAV 'RIFF' tag and 'wave' tag is used
        instead of 'WAVE'.

        So here is a simple example to play back a
        sample you found with the tool.
        --------------------------------------------
        byte * file = read the whole gm.dls file;
        byte * data = file + sampleOffset;
        data -= 4;
        *(dword *)data = 'EVAW';
        data -= 8;
        *(dword *)data = 'FFIR';
        PlaySoundA(
            (const char *)data, 
            NULL, 
            SND_MEMORY
        );
        --------------------------------------------
        
        How deliciously simple right?  :)  Have fun!
        
        blackpawn/xplsv
        jimscott@blackpawn.com.
        
        ---                                      ---
        ---                                      ---
                      xplsv.com 2007
        ---                                      ---Title: GmDLSTool
Author: blackpawn/XPLSV