Skip to content

Instantly share code, notes, and snippets.

View vananasun's full-sized avatar

Maxim van Dijk vananasun

  • Netherlands
  • 16:47 (UTC +02:00)
View GitHub Profile
@vananasun
vananasun / avp_audio_extractor.py
Created March 31, 2023 08:32
Aliens vs Predator Atari Jaguar ROM audio extractor
import wave
import struct
# Load audio bytes from ROM
rom_bytes = bytearray()
with open("Alien vs Predator (1994).jag", "rb") as rom_file:
rom_file.seek(1488614, 0)
rom_bytes += bytearray(rom_file.read(1596322))
@vananasun
vananasun / SB16
Created August 17, 2022 17:23
E_AUDIO.C
#include "E.H"
#include "E_DOS.H"
#include "AUDIO/SB16.H"
#include "AUDIO/INTR.H"
#include <dos.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
// Crap needed for SoundBlaster 16 setup