Files
jak-project/decompiler/data/streamed_audio.h
T
Jordan 76e4bcb8bc [decompiler] Extracting Sound Effects and Music (#4401)
This PR adds the ability to extract sound effects to .wav files for each
of the four games, and music to .wav files for Jak1 and Jak2.

Basically what I have done is create a "fake player" which works the
same as the player from Player.cpp except we just take the raw audio
samples that would be sent to cubeb and then write them to wave files.

I shamelessly stole @Hat-Kid's code for flavas, for parsing the sound
effect names and for finding where the sound banks start for Jak 1 lol.
2026-09-16 19:29:11 -04:00

19 lines
555 B
C++

#pragma once
#include <string>
#include <vector>
#include "common/util/FileUtil.h"
#include "decompiler/config.h"
namespace decompiler {
void process_streamed_audio(const Config& config,
const fs::path& output_path,
const fs::path& input_dir,
const std::vector<std::string>& audio_files);
void process_sfx(const fs::path& output_path, const fs::path& input_dir);
void process_music(const fs::path& output_path, const fs::path& input_dir);
} // namespace decompiler