chore: comment ARM MSR code + Audio issues

This commit is contained in:
2022-04-30 22:17:34 -05:00
parent 640b1f7c5d
commit 68012f84d3
3 changed files with 10 additions and 2 deletions

View File

@@ -266,6 +266,7 @@ fn initAudio(apu: *Apu) SDL.SDL_AudioDeviceID {
return dev;
}
// FIXME: Sometimes, we hear garbage upon program start. Why?
export fn audioCallback(userdata: ?*anyopaque, stream: [*c]u8, len: c_int) void {
const apu = @ptrCast(*Apu, @alignCast(8, userdata));
_ = SDL.SDL_AudioStreamGet(apu.stream, stream, len);