examples: play-opus: change sfx noise

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-05-07 13:14:44 -07:00 committed by Stephen Gutekanst
parent 69ff2e027f
commit cb6bdd7eca

View file

@ -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);