Skip to content

Commit

Permalink
* Update to Wwise 2022.1.10
Browse files Browse the repository at this point in the history
* Add note about using a zig nominated version, 2024.1.0-mach
* We can now use original zigwin32 now that my change to switch between UNICODE and ANSI version of the API has been merged
  • Loading branch information
mlarouche committed Feb 18, 2024
1 parent edefa5b commit eb1bb4f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wwise-zig-demo - Demo application of the wwise-zig bindings (2022.1.9)
# wwise-zig-demo - Demo application of the wwise-zig bindings (2022.1.10)

This a port of the Integration Demo from the samples in Zig using [wwise-zig](https://github.com/Cold-Bytes-Games/wwise-zig) and using [zig-gamedev](https://github.com/michal-z/zig-gamedev) `zgui` for the UI rendering.

Expand All @@ -8,6 +8,14 @@ This is a 3rd party implementation and it is not affiliated with Audiokinetic.

[![Join our Discord!](https://discordapp.com/api/guilds/1161009516771549374/widget.png?style=banner2)](https://discord.gg/jMxttNCBys)

## Zig version

This library uses zig nominated [2024.1.0-mach](https://machengine.org/about/nominated-zig/). To install using [`zigup`](https://github.com/marler8997/zigup):

```sh
zigup 0.12.0-dev.2063+804cee3b9
```

# LICENSE

wwise-zig-demo
Expand Down
10 changes: 5 additions & 5 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.{
.name = "wwise-zig-demo",
.version = "2022.1.9-zig0",
.version = "2022.1.10-zig0",
.paths = .{"."},
.dependencies = .{
.@"wwise-zig" = .{
.url = "https://github.com/Cold-Bytes-Games/wwise-zig/archive/90cdc6877369b55af3ee2dfcf091dc547ed59f03.tar.gz",
.hash = "122053d2ec67ebe8a47b45ac32ddf41283b27c3519196b6730d9b826a463d1294299",
.url = "https://github.com/Cold-Bytes-Games/wwise-zig/archive/d2da6b513a373bd38885a7f77d689fcbf7c31d3a.tar.gz",
.hash = "1220643bb5a3ae722fbc7520759e72e700a7bb4b0b382ad40a80d069cb663bfb729f",
},
.zigwin32 = .{
.url = "https://github.com/Cold-Bytes-Games/zigwin32/archive/705d305d7c30af2004d804789879755a9c38953a.tar.gz",
.hash = "1220936e3c62c4626350d47e928291cfda01ef6de6e03ca42d911285c34432003fa7",
.url = "https://github.com/marlersoft/zigwin32/archive/6f9ebf17f42aa7b37f466b195159893ed8eae8fc.tar.gz",
.hash = "1220ff2400a1974b2a9dc52cfe5c9c0b2cc87a2e75291ca781dc5b78908afe5af0e8",
},
},
}
4 changes: 2 additions & 2 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub const DxContext = struct {
.@"11_0",
.@"10_0",
};
if (d3d11.D3D11CreateDeviceAndSwapChain(null, .HARDWARE, null, d3d11.D3D11_CREATE_DEVICE_FLAG.initFlags(.{}), feature_level_array, 2, d3d11.D3D11_SDK_VERSION, &sd, &self.swap_chain, &self.device, &feature_level, &self.device_context) != win32.S_OK) {
if (d3d11.D3D11CreateDeviceAndSwapChain(null, .HARDWARE, null, .{}, feature_level_array, 2, d3d11.D3D11_SDK_VERSION, &sd, &self.swap_chain, &self.device, &feature_level, &self.device_context) != win32.S_OK) {
return false;
}

Expand Down Expand Up @@ -588,7 +588,7 @@ pub fn main() !void {
defer _ = win32.UnregisterClassW(win_class.lpszClassName, win_class.hInstance);

const hwnd = win32.CreateWindowExW(
win32.WINDOW_EX_STYLE.initFlags(.{}),
.{},
win_class.lpszClassName,
L("wwise-zig Integration Demo"),
win32.WS_OVERLAPPEDWINDOW,
Expand Down

0 comments on commit eb1bb4f

Please sign in to comment.