examples: play-opus: change sfx noise
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
69ff2e027f
commit
cb6bdd7eca
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ fn init(core: *mach.Core.Mod, audio: *mach.Audio.Mod, app: *Mod) !void {
|
||||||
app.send(.after_init, .{});
|
app.send(.after_init, .{});
|
||||||
|
|
||||||
const bgm_fbs = std.io.fixedBufferStream(assets.bgm.bit_bit_loop);
|
const bgm_fbs = std.io.fixedBufferStream(assets.bgm.bit_bit_loop);
|
||||||
const sfx_fbs = std.io.fixedBufferStream(assets.sfx.death);
|
const sfx_fbs = std.io.fixedBufferStream(assets.sfx.sword1);
|
||||||
|
|
||||||
var sound_stream = std.io.StreamSource{ .const_buffer = bgm_fbs };
|
var sound_stream = std.io.StreamSource{ .const_buffer = bgm_fbs };
|
||||||
const bgm = try Opus.decodeStream(gpa.allocator(), sound_stream);
|
const bgm = try Opus.decodeStream(gpa.allocator(), sound_stream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue