Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

DiRT 3(.WIM)

Featured Replies

  • Author
  • Localization

voltagex, posted Sat Jun 06, 2015 12:48 am (5578)


I know this is an old topic but:

Code:
 sox -t raw -e mu-law -r 96k _mus_fnd_quad01.ulaw test.wav


Works fine. I didn't even have to cheat and decompile the Ego Audio Tool (although I do wish people would release their source code)

The above sox command is right, but the proper sample rates can be found in the musicPlayer.xml.

See https://github.com/voltagex/Modest/tree/master
  • Author
  • Localization

AlphaTwentyThree, posted Sun Jun 14, 2015 1:55 pm (5711)


Thanks for this vital information! I didn't know what to make of the strange characer distribution of the streams. Now I know that this is ?-Law!:)
In this case you can use my wave header adder from http://forum.xentax.com/viewtopic.php?f ... 565#p71565 (set codec to 7, bits to 8 and blockalign to 2).
  • Author
  • Localization

aluigi, posted Tue Aug 30, 2016 2:12 pm (17055)


Oh, my surprise when I was looking for a way to play the WIM files of DiRT Showdown and found this topic on my forum :D

If you want to play the files directly with sox it's enough to use -d instead of the output file name... just in case someone wants to save space:
Code:
sox -t raw -e mu-law -r 96k YOUR_FILE.WIM -d


Instead if you want to add a RIFF/WAV header to the WIM file for playing them with various media player (for example Winamp or mplayer) you can use this script:
Code:
get SIZE asize
math CHANNELS = 1
math FREQUENCY = 96000
math BITS = 8
get NAME basename
string NAME ".wav"
callfunction TOWAV_MULAW 1

startfunction TOWAV_MULAW
    set BLOCKALIGN long BITS
    set AVGBYTES long FREQUENCY
    math BLOCKALIGN / 8
    math BLOCKALIGN * CHANNELS
    math AVGBYTES * BLOCKALIGN

    log MEMORY_FILE 0 0
    putdstring "RIFF" 4 MEMORY_FILE
    put 0 long MEMORY_FILE
    putdstring "WAVE" 4 MEMORY_FILE
    putdstring "fmt " 4 MEMORY_FILE
    put 0 long MEMORY_FILE
    put 7 short MEMORY_FILE             # wFormatTag
    put CHANNELS short MEMORY_FILE      # wChannels
    put FREQUENCY long MEMORY_FILE      # dwSamplesPerSec
    put AVGBYTES long MEMORY_FILE       # dwAvgBytesPerSec
    put BLOCKALIGN short MEMORY_FILE    # wBlockAlign
    put BITS short MEMORY_FILE          # wBitsPerSample
    put 0x0 short MEMORY_FILE
    savepos TMP MEMORY_FILE
    math TMP - 0x14
    putvarchr MEMORY_FILE 0x10 TMP long

    putdstring "fact" 4 MEMORY_FILE
    put 4 long MEMORY_FILE
    put SIZE long MEMORY_FILE

    putdstring "data" 4 MEMORY_FILE
    put SIZE long MEMORY_FILE

    get RIFFSIZE asize MEMORY_FILE
    math RIFFSIZE SIZE
    math RIFFSIZE - 8
    putvarchr MEMORY_FILE 4 RIFFSIZE long
    math RIFFSIZE - SIZE
    math RIFFSIZE 8
    log NAME 0 RIFFSIZE MEMORY_FILE
    append
    log NAME OFFSET SIZE
    append
endfunction


It's easy to use it in batch with all the files from command-line:
Code:
quickbms.exe -F "{}win_mus{}.wim" 1.bms "C:\Program Files (x86)\Steam\SteamApps\common\DiRT Showdown\audio\dictionaries" c:\dirt_output
  • Author
  • Localization

aluigi, posted Tue Aug 30, 2016 2:52 pm (17061)


Just a small improvement of the previous script.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.