chore: remove code that pretends to remove DC offset

This commit is contained in:
2022-06-04 09:47:58 -03:00
parent b6f5517c89
commit 7ff5f3b8e7
2 changed files with 4 additions and 7 deletions

View File

@@ -245,7 +245,7 @@ export fn audioCallback(userdata: ?*anyopaque, stream: [*c]u8, len: c_int) void
// If we don't write anything, play silence otherwise garbage will be played
// FIXME: I don't think this hack to remove DC Offset is acceptable :thinking:
if (written == 0) std.mem.set(u8, stream[0..@intCast(usize, len)], 0x80);
if (written == 0) std.mem.set(u8, stream[0..@intCast(usize, len)], 0x40);
}
fn getSavePath(alloc: std.mem.Allocator) !?[]const u8 {