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!
Towtruck Simulator 2015
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Towtruck Simulator 2015
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:
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: Select all
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
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Towtruck Simulator 2015
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?

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?