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.

Towtruck Simulator 2015

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Mon Jan 19, 2015 7:40 pm (2756)


Hello!
Despite the title of the game, I'd like to add it to my VGM collection. It uses the insomnia engine and I extracted the files nicely with Luigi's script. However, the audio files use a custom audio header. While I can write a script for PCM 8/16bit, I get a problem with WMA. I've uploaded a sample for each variant and I'd be happy if somebody could provide me with a solution for the WMA streams.
Here are the samples: http://*USE_ANOTHER_FILEHOSTING*/d00baaf ... tts2015.7z
Thanks for your help!
  • Author
  • Localization

aluigi, posted Tue Jan 20, 2015 12:10 am (2770)


I don't have idea of what should be the format for wma2 in this case.
But I used the same script of pcm with the wma file and probably with some modifications it's possible to open it with mplayer/ffmpeg because it understands that it's wma2 (so the codec field is correct).

Yeah not much useful, anyway this is the simple script I used:
Code:
get CODEC short
get CHANNELS short
get FREQUENCY long
get SAMPLES long
get DUMMY short
get BITS short

savepos OFFSET
get SIZE asize
math SIZE -= OFFSET

get NAME basename
string NAME = ".wav"
callfunction TOWAV 1

startfunction TOWAV
    set MEMORY_FILE binary "\x52\x49\x46\x46\x00\x00\x00\x00\x57\x41\x56\x45\x66\x6d\x74\x20\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x61\x74\x61\x00\x00\x00\x00"

    set RIFFSIZE long SIZE
    math RIFFSIZE = 36
    set BLOCKALIGN long BITS
    set AVGBYTES long FREQUENCY
    math BLOCKALIGN /= 8
    math BLOCKALIGN *= CHANNELS
    math AVGBYTES *= BLOCKALIGN

    putvarchr MEMORY_FILE 4 RIFFSIZE long
    putvarchr MEMORY_FILE 20 CODEC short      # wFormatTag: Microsoft PCM Format (0x0001)
    putvarchr MEMORY_FILE 22 CHANNELS short   # wChannels
    putvarchr MEMORY_FILE 24 FREQUENCY long   # dwSamplesPerSec
    putvarchr MEMORY_FILE 28 AVGBYTES long    # dwAvgBytesPerSec
    putvarchr MEMORY_FILE 32 BLOCKALIGN short # wBlockAlign
    putvarchr MEMORY_FILE 34 BITS short       # wBitsPerSample
    putvarchr MEMORY_FILE 40 SIZE long

    log MEMORY_FILE2 0 44 MEMORY_FILE
    append
    log MEMORY_FILE2 OFFSET SIZE
    append
    get RIFF_SIZE asize MEMORY_FILE2
    log NAME 0 RIFF_SIZE MEMORY_FILE2
endfunction
  • Author
  • Localization

AlphaTwentyThree, posted Tue Jan 20, 2015 12:21 am (2774)


Ok, as far as I got. ;)
Can anyone help me with the needed ffmpeg options to decode the file? Any possibility to modify the header to wma so it's playable?
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.