chore: redo apu sampling

This commit is contained in:
2022-05-22 08:18:29 -03:00
parent a2d2a84850
commit e70fe73899
2 changed files with 146 additions and 72 deletions

View File

@@ -245,7 +245,7 @@ fn initAudio(apu: *Apu) SDL.SDL_AudioDeviceID {
var have: SDL.SDL_AudioSpec = undefined;
var want: SDL.SDL_AudioSpec = .{
.freq = sample_rate,
.format = SDL.AUDIO_F32,
.format = SDL.AUDIO_U16,
.channels = 2,
.samples = 0x100,
.callback = audioCallback,