Skip to content

Commit

Permalink
Audio (#30)
Browse files Browse the repository at this point in the history
Basic audio working! More precise AICA emulation also fixes some issues.

* Add zaudio dependency
* Use it to output some sound samples
* Lots of work on the AICA and sample generation
* Some bug fixes in the arm core
  • Loading branch information
Senryoku authored Jul 15, 2024
1 parent 84f33fd commit ce98151
Show file tree
Hide file tree
Showing 14 changed files with 882,765 additions and 330 deletions.
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ You will also need to provide copies of `dc_boot.bin` and `dc_flash.bin` files i
- What's "Maple V blank over interrupt"?
"This interrupt is generated when a Maple interface transmission/reception operation spans V-Blank_In."
- VMU/Storage
- The whole AICA Chip. Please have mercy.
- AICA:
- Stereo
- DSP
- Renderer:
- Modifier Volumes.
- Implemented: Inclusion volumes and shadow bit over opaque geometry.
Expand Down Expand Up @@ -71,6 +73,8 @@ You will also need to provide copies of `dc_boot.bin` and `dc_flash.bin` files i
## Thanks

- Huge thanks to drk||Raziel and MetalliC for their respective contributions to the scene, and for answering my questions!
- Thanks to originaldave_ for the sh4 tests (https://github.com/SingleStepTests/sh4)
- And overall thanks to everyone participating in the EmuDev Discord :)

## Licence

Expand Down
699 changes: 699 additions & 0 deletions armwrestler.txt

Large diffs are not rendered by default.

881,265 changes: 881,265 additions & 0 deletions armwrestler_working.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ pub fn build(b: *std.Build) void {
const zgpu = b.dependency("zgpu", .{});
exe.root_module.addImport("zgpu", zgpu.module("root"));
exe.linkLibrary(zgpu.artifact("zdawn"));

const zaudio = b.dependency("zaudio", .{});
exe.root_module.addImport("zaudio", zaudio.module("root"));
exe.linkLibrary(zaudio.artifact("miniaudio"));
}

exe.root_module.addImport("arm7", arm7_module);
Expand Down
1 change: 1 addition & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.zgpu = .{ .path = "libs/zig-gamedev/libs/zgpu" },
.zglfw = .{ .path = "libs/zig-gamedev/libs/zglfw" },
.zgui = .{ .path = "libs/zig-gamedev/libs/zgui" },
.zaudio = .{ .path = "libs/zig-gamedev/libs/zaudio" },
.common = .{ .path = "libs/zig-gamedev/libs/common" },
.system_sdk = .{ .path = "libs/zig-gamedev/libs/system-sdk" },
.zpool = .{ .path = "libs/zig-gamedev/libs/zpool" },
Expand Down
2 changes: 1 addition & 1 deletion libs/arm7
Loading

0 comments on commit ce98151

Please sign in to comment.